mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-15 22:08:36 +00:00
[rcore] fix: TRACELOG upon successfully changing directory
InitWindow() prints CWD during initialization, but ChangeDirectory() does not, which is quite confusing when you start messing with CWD. Now said function should log similar message.
This commit is contained in:
parent
46cd07d2c7
commit
8e9c3ceb57
@ -2354,6 +2354,7 @@ bool ChangeDirectory(const char *dir)
|
||||
bool result = CHDIR(dir);
|
||||
|
||||
if (result != 0) TRACELOG(LOG_WARNING, "SYSTEM: Failed to change to directory: %s", dir);
|
||||
else TRACELOG(LOG_INFO, "SYSTEM: Working Directory: %s", dir);
|
||||
|
||||
return (result == 0);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user