filesystem: Added SDL_GetExeName().

core/unix had a more-limited copy of filesystem/unix's implementation, called
SDL_GetExeName(). Replace that with a real implementation in filesystem, and
allow each platform to implement it as appropriate.

Implemented for Unix and Windows; most implementations are currently FIXME
stubs at the moment.

Reference Issue #15692.
This commit is contained in:
Ryan C. Gordon
2026-05-26 15:23:31 -04:00
parent 199d509820
commit 7d29ce8e31
24 changed files with 191 additions and 100 deletions

View File

@@ -34,6 +34,11 @@ char *SDL_SYS_GetBasePath(void)
return SDL_strdup("assets://");
}
char *SDL_SYS_GetExeName(void)
{
return NULL; // !!! FIXME: probably just use the Linux path?
}
char *SDL_SYS_GetPrefPath(const char *org, const char *app)
{
const char *path = SDL_GetAndroidInternalStoragePath();