Skip to content

Commit cc02d39

Browse files
committed
Add a way for Android to access external storage too.
1 parent 0500670 commit cc02d39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

application/platforms/application_android.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -1106,6 +1106,7 @@ void android_main(android_app *app)
11061106
GRANITE_FILESYSTEM()->register_protocol("assets", std::make_unique<AssetManagerFilesystem>(ANDROID_ASSET_PATH));
11071107
GRANITE_FILESYSTEM()->register_protocol("fsr2", std::make_unique<AssetManagerFilesystem>(ANDROID_FSR2_ASSET_PATH));
11081108
GRANITE_FILESYSTEM()->register_protocol("cache", std::make_unique<OSFilesystem>(app->activity->internalDataPath));
1109+
GRANITE_FILESYSTEM()->register_protocol("external", std::make_unique<OSFilesystem>(app->activity->externalDataPath));
11091110
#endif
11101111

11111112
android_app_set_key_event_filter(app, key_event_filter);

0 commit comments

Comments
 (0)