android: Change how apps access their APK's "assets" directory.

Now they can explicitly access it with "assets://" filenames, and
SDL_GetBasePath() returns "assets://"

Fixes #15347.
Fixes #5044.
This commit is contained in:
Ryan C. Gordon
2026-04-30 19:59:15 -04:00
parent e8127a9a11
commit 9672f5b68b
6 changed files with 72 additions and 24 deletions

View File

@@ -31,7 +31,7 @@
char *SDL_SYS_GetBasePath(void)
{
return SDL_strdup("./");
return SDL_strdup("assets://");
}
char *SDL_SYS_GetPrefPath(const char *org, const char *app)