diff options
| author | Ray <[email protected]> | 2020-11-01 18:14:55 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-11-01 18:14:55 +0100 |
| commit | 01d9af12f708fe8d439d4c3ddea2ccd279926448 (patch) | |
| tree | 48fe0c32feaa416a9f13ccee3894c7cb11be8c8a /src/core.c | |
| parent | 8e15dae5ed8264565d3f94aeac7a663ce76a2e62 (diff) | |
| download | raylib-01d9af12f708fe8d439d4c3ddea2ccd279926448.tar.gz raylib-01d9af12f708fe8d439d4c3ddea2ccd279926448.zip | |
REDESIGNED: ChangeDirectory()
Not returning error code (or success), just log if it fails
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |
