mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-01 15:38:29 +00:00
SDL_sysfilesystem.c (SDL_GetBasePath): fixed the solaris code path.
Reference issue: https://github.com/libsdl-org/SDL/pull/6681
This commit is contained in:
@@ -221,8 +221,9 @@ SDL_GetBasePath(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#if defined(__SOLARIS__)
|
|
||||||
else {
|
#if defined(__SOLARIS__) /* try this as a fallback if /proc didn't pan out */
|
||||||
|
if (!retval) {
|
||||||
const char *path = getexecname();
|
const char *path = getexecname();
|
||||||
if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
|
if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
|
||||||
retval = SDL_strdup(path);
|
retval = SDL_strdup(path);
|
||||||
|
Reference in New Issue
Block a user