mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 10:18:14 +00:00
REDESIGNED: ChangeDirectory()
Not returning error code (or success), just log if it fails
This commit is contained in:
@@ -2217,10 +2217,12 @@ void ClearDirectoryFiles(void)
|
||||
dirFilesCount = 0;
|
||||
}
|
||||
|
||||
// Change working directory, returns true if success
|
||||
bool ChangeDirectory(const char *dir)
|
||||
// Change working directory
|
||||
void ChangeDirectory(const char *dir)
|
||||
{
|
||||
return (CHDIR(dir) == 0);
|
||||
bool result = CHDIR(dir);
|
||||
|
||||
if (result != 0) TRACELOG(LOG_WARNING, "SYSTEM: Failed to change to directory: %s", dir);
|
||||
}
|
||||
|
||||
// Check if a file has been dropped into window
|
||||
|
Reference in New Issue
Block a user