diff options
| author | Ray <[email protected]> | 2024-07-01 11:44:20 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2024-07-01 11:44:20 +0200 |
| commit | c8313d9ebc428590c7098a75d2db0eed1d877127 (patch) | |
| tree | 5d679179c6e462923202fb395d69efeb9953ac86 /src/platforms | |
| parent | 4c90fc6eff77fad4074047153636bf85475a1fd7 (diff) | |
| download | raylib-c8313d9ebc428590c7098a75d2db0eed1d877127.tar.gz raylib-c8313d9ebc428590c7098a75d2db0eed1d877127.zip | |
Update Storage base path, use provided SDL base path
Diffstat (limited to 'src/platforms')
| -rw-r--r-- | src/platforms/rcore_desktop_sdl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/platforms/rcore_desktop_sdl.c b/src/platforms/rcore_desktop_sdl.c index d9637f70..9a6d1613 100644 --- a/src/platforms/rcore_desktop_sdl.c +++ b/src/platforms/rcore_desktop_sdl.c @@ -1576,13 +1576,15 @@ int InitPlatform(void) CORE.Time.previous = GetTime(); // Get time as double #if defined(_WIN32) && defined(SUPPORT_WINMM_HIGHRES_TIMER) && !defined(SUPPORT_BUSY_WAIT_LOOP) - SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1"); // SDL equivalent of timeBeginPeriod() and timeEndPeriod() + SDL_SetHint(SDL_HINT_TIMER_RESOLUTION, "1"); // SDL equivalent of timeBeginPeriod() and timeEndPeriod() #endif //---------------------------------------------------------------------------- // Initialize storage system //---------------------------------------------------------------------------- - CORE.Storage.basePath = GetWorkingDirectory(); // Define base path for storage + // Define base path for storage + CORE.Storage.basePath = SDL_GetBasePath(); // Alternative: GetWorkingDirectory(); + CHDIR(CORE.Storage.basePath); //---------------------------------------------------------------------------- TRACELOG(LOG_INFO, "PLATFORM: DESKTOP (SDL): Initialized successfully"); |
