Update Storage base path, use provided SDL base path

This commit is contained in:
Ray 2024-07-01 11:44:20 +02:00
parent 4c90fc6eff
commit c8313d9ebc
1 changed files with 4 additions and 2 deletions

View File

@ -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");