Skip to content

Commit 8e9c3ce

Browse files
[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.
1 parent 46cd07d commit 8e9c3ce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rcore.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2354,6 +2354,7 @@ bool ChangeDirectory(const char *dir)
23542354
bool result = CHDIR(dir);
23552355

23562356
if (result != 0) TRACELOG(LOG_WARNING, "SYSTEM: Failed to change to directory: %s", dir);
2357+
else TRACELOG(LOG_INFO, "SYSTEM: Working Directory: %s", dir);
23572358

23582359
return (result == 0);
23592360
}

0 commit comments

Comments
 (0)