Reverted ChangeDirectory() redesign
It returns true on success again
This commit is contained in:
parent
01d9af12f7
commit
5ac9cb04c2
2 changed files with 5 additions and 3 deletions
|
@ -2217,12 +2217,14 @@ void ClearDirectoryFiles(void)
|
|||
dirFilesCount = 0;
|
||||
}
|
||||
|
||||
// Change working directory
|
||||
void ChangeDirectory(const char *dir)
|
||||
// Change working directory, returns true on success
|
||||
bool ChangeDirectory(const char *dir)
|
||||
{
|
||||
bool result = CHDIR(dir);
|
||||
|
||||
if (result != 0) TRACELOG(LOG_WARNING, "SYSTEM: Failed to change to directory: %s", dir);
|
||||
|
||||
return (result == 0);
|
||||
}
|
||||
|
||||
// Check if a file has been dropped into window
|
||||
|
|
|
@ -984,7 +984,7 @@ RLAPI const char *GetPrevDirectoryPath(const char *dirPath); // Get previou
|
|||
RLAPI const char *GetWorkingDirectory(void); // Get current working directory (uses static string)
|
||||
RLAPI char **GetDirectoryFiles(const char *dirPath, int *count); // Get filenames in a directory path (memory should be freed)
|
||||
RLAPI void ClearDirectoryFiles(void); // Clear directory files paths buffers (free memory)
|
||||
RLAPI void ChangeDirectory(const char *dir); // Change working directory
|
||||
RLAPI bool ChangeDirectory(const char *dir); // Change working directory, return true on success
|
||||
RLAPI bool IsFileDropped(void); // Check if a file has been dropped into window
|
||||
RLAPI char **GetDroppedFiles(int *count); // Get dropped files names (memory should be freed)
|
||||
RLAPI void ClearDroppedFiles(void); // Clear dropped files paths buffer (free memory)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue