mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Turn on scoped storage, for the purposes of testing on this branch.
This commit is contained in:
1 parent
66a52e7fc9
commit
88b2552d64
3 files changed
+6
-7
No files matched your search
@@ -44,8 +44,7 @@
|
||||
android:label="@string/app_name"
|
||||
android:logo="@drawable/ic_banner"
|
||||
android:isGame="true"
|
||||
android:banner="@drawable/tv_banner"
|
||||
android:requestLegacyExternalStorage="true">
|
||||
android:banner="@drawable/tv_banner">
|
||||
<meta-data android:name="android.max_aspect" android:value="2.4" />
|
||||
<activity
|
||||
android:name=".PpssppActivity"
|
||||
|
||||
@@ -42,8 +42,8 @@ android {
|
||||
}
|
||||
}
|
||||
}
|
||||
compileSdkVersion 29
|
||||
buildToolsVersion '29.0.3'
|
||||
compileSdkVersion 30
|
||||
buildToolsVersion '30.0.3'
|
||||
defaultConfig {
|
||||
applicationId 'org.ppsspp.ppsspp'
|
||||
if (androidGitVersion.name() != "unknown" && androidGitVersion.code() >= 14000000) {
|
||||
@@ -59,7 +59,7 @@ android {
|
||||
new File("versioncode.txt").write(androidGitVersion.code().toString())
|
||||
|
||||
minSdkVersion 9
|
||||
targetSdkVersion 29
|
||||
targetSdkVersion 30
|
||||
if (project.hasProperty("ANDROID_VERSION_CODE") && project.hasProperty("ANDROID_VERSION_NAME")) {
|
||||
versionCode ANDROID_VERSION_CODE
|
||||
versionName ANDROID_VERSION_NAME
|
||||
|
||||
@@ -96,7 +96,7 @@ struct JNIEnv {};
|
||||
bool useCPUThread = true;
|
||||
|
||||
// We'll turn this on when we target Android 12.
|
||||
bool useScopedStorageIfRequired = false;
|
||||
bool useScopedStorageIfRequired = true;
|
||||
|
||||
enum class EmuThreadState {
|
||||
DISABLED,
|
||||
@@ -499,7 +499,7 @@ bool System_GetPropertyBool(SystemProperty prop) {
|
||||
case SYSPROP_CAN_JIT:
|
||||
return true;
|
||||
case SYSPROP_ANDROID_SCOPED_STORAGE:
|
||||
if (useScopedStorageIfRequired && androidVersion >= 28)
|
||||
if (useScopedStorageIfRequired && androidVersion >= 29) // 29 is Android 10.
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user