summaryrefslogtreecommitdiff
path: root/platform/android/java/lib/src
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-12-05 00:05:49 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-12-05 00:05:49 +0100
commita0365c140a932895805f3c475a5bb3e02f5df4ad (patch)
tree2f5e4619e929f484b69ba6d41d32a87615321794 /platform/android/java/lib/src
parent5efa25496480aa521f4803821e215bfc9a24149a (diff)
parentecec415988de5b016c70512bbb6a7cfc04ccd0a2 (diff)
Merge pull request #68995 from bruvzg/sys_font_for_text
Use system fonts as fallback.
Diffstat (limited to 'platform/android/java/lib/src')
-rw-r--r--platform/android/java/lib/src/org/godotengine/godot/io/StorageScope.kt5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/java/lib/src/org/godotengine/godot/io/StorageScope.kt b/platform/android/java/lib/src/org/godotengine/godot/io/StorageScope.kt
index c9282dd247..1a3576a6a9 100644
--- a/platform/android/java/lib/src/org/godotengine/godot/io/StorageScope.kt
+++ b/platform/android/java/lib/src/org/godotengine/godot/io/StorageScope.kt
@@ -90,6 +90,11 @@ internal enum class StorageScope {
return APP
}
+ var rootDir: String? = System.getenv("ANDROID_ROOT")
+ if (rootDir != null && canonicalPathFile.startsWith(rootDir)) {
+ return APP
+ }
+
if (sharedDir != null && canonicalPathFile.startsWith(sharedDir)) {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
// Before R, apps had access to shared storage so long as they have the right