浏览代码

change savepath as well

Wei Mingzhi 7 年之前
父节点
当前提交
749ac26a74
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      unix/unix.cpp

+ 1 - 0
unix/unix.cpp

@@ -128,6 +128,7 @@ void SaveControls()
    free(gConfig.pszLogFile);
 
    gConfig.pszGamePath = *gWidgets.gamepath->value() ? strdup(gWidgets.gamepath->value()) : nullptr;
+   gConfig.pszSavePath = *gWidgets.gamepath->value() ? strdup(gWidgets.gamepath->value()) : nullptr;
    gConfig.pszMsgFile = *gWidgets.msgfile->value() ? strdup(gWidgets.msgfile->value()) : nullptr;
    gConfig.pszFontFile = *gWidgets.fontfile->value() ? strdup(gWidgets.fontfile->value()) : nullptr;
    gConfig.pszLogFile = *gWidgets.logfile->value() ? strdup(gWidgets.logfile->value()) : nullptr;