1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Update the storage access handler logic to support accessing / retrieving contents with the assets:/ prefix

This commit is contained in:
Fredia Huya-Kouadio
2024-03-07 19:16:25 -08:00
committed by Fredia Huya-Kouadio
parent e63c40e59c
commit 794ea99240
20 changed files with 670 additions and 268 deletions

View File

@@ -574,4 +574,9 @@ JNIEXPORT jboolean JNICALL Java_org_godotengine_godot_GodotLib_shouldDispatchInp
}
return false;
}
JNIEXPORT jstring JNICALL Java_org_godotengine_godot_GodotLib_getProjectResourceDir(JNIEnv *env, jclass clazz) {
const String resource_dir = OS::get_singleton()->get_resource_dir();
return env->NewStringUTF(resource_dir.utf8().get_data());
}
}