diff options
| author | Ray <[email protected]> | 2020-11-01 19:06:21 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-11-01 19:06:21 +0100 |
| commit | 5ac9cb04c2b8b401cea0fc61437bcb5300d02f91 (patch) | |
| tree | 76d5fb4c6e0529cf21bf9fab9a3e58cd904cfb0c /src/core.c | |
| parent | 01d9af12f708fe8d439d4c3ddea2ccd279926448 (diff) | |
| download | raylib-5ac9cb04c2b8b401cea0fc61437bcb5300d02f91.tar.gz raylib-5ac9cb04c2b8b401cea0fc61437bcb5300d02f91.zip | |
Reverted ChangeDirectory() redesign
It returns true on success again
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 4 insertions, 2 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 |
