浏览代码

save path follow game path when unspecified

Pal Lockheart 7 年之前
父节点
当前提交
8c4619bf59
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      palcfg.c

+ 1 - 1
palcfg.c

@@ -379,8 +379,8 @@ PAL_LoadConfig(
 	//
 	// Set configurable global options
 	//
+	if (!gConfig.pszSavePath) gConfig.pszSavePath = gConfig.pszGamePath ? strdup(gConfig.pszGamePath) : strdup(PAL_SAVE_PREFIX);
 	if (!gConfig.pszGamePath) gConfig.pszGamePath = strdup(PAL_PREFIX);
-	if (!gConfig.pszSavePath) gConfig.pszSavePath = strdup(PAL_SAVE_PREFIX);
 	gConfig.eMusicType = eMusicType;
 	gConfig.eCDType = eCDType;
 	gConfig.eOPLType = eOPLType;