REDESIGNED: ChangeDirectory()

Not returning error code (or success), just log if it fails
This commit is contained in:
Ray 2020-11-01 18:14:55 +01:00
parent 8e15dae5ed
commit 01d9af12f7
2 changed files with 7 additions and 5 deletions

View file

@ -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