浏览代码

[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.
pull/4850/head
sleeptightAnsiC 6 个月前
父节点
当前提交
8e9c3ceb57
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      src/rcore.c

+ 1
- 0
src/rcore.c 查看文件

@ -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);
}

正在加载...
取消
保存