mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
@@ -62,6 +62,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
SDLTest_CommonState *state;
|
||||
char *pref_path;
|
||||
char *curdir;
|
||||
const char *base_path;
|
||||
|
||||
/* Initialize test framework */
|
||||
@@ -106,6 +107,15 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
SDL_free(pref_path);
|
||||
|
||||
curdir = SDL_GetCurrentDirectory();
|
||||
if (!curdir) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find current directory: %s\n",
|
||||
SDL_GetError());
|
||||
} else {
|
||||
SDL_Log("current directory: '%s'\n", curdir);
|
||||
}
|
||||
SDL_free(curdir);
|
||||
|
||||
if (base_path) {
|
||||
char **globlist;
|
||||
SDL_IOStream *stream;
|
||||
|
||||
Reference in New Issue
Block a user