mirror of https://github.com/raysan5/raylib
Update Storage base path, use provided SDL base path
This commit is contained in:
parent
4c90fc6eff
commit
c8313d9ebc
|
@ -1582,7 +1582,9 @@ int InitPlatform(void)
|
|||
|
||||
// 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");
|
||||
|
|
Loading…
Reference in New Issue