Browse Source

save path follow game path when unspecified

Pal Lockheart 7 years ago
parent
commit
8c4619bf59
1 changed files with 1 additions and 1 deletions
  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;