win32: fix lua path

This commit is contained in:
p989 2009-07-01 19:50:06 +00:00
parent 321873924b
commit 4dea9cc186
2 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,7 @@ void WritePathSettings()
WritePrivateProfileString(SECTION, CHEATKEY, pathToCheats, IniName);
WritePrivateProfileString(SECTION, SOUNDKEY, pathToSounds, IniName);
WritePrivateProfileString(SECTION, FIRMWAREKEY, pathToFirmware, IniName);
WritePrivateProfileString(SECTION, LUAKEY, pathToLua, IniName);
WritePrivateProfileString(SECTION, FORMATKEY, screenshotFormat, IniName);
@ -255,6 +256,7 @@ void ReadPathSettings()
ReadKey(pathToCheats, CHEATKEY);
ReadKey(pathToSounds, SOUNDKEY);
ReadKey(pathToFirmware, FIRMWAREKEY);
ReadKey(pathToLua, LUAKEY);
GetPrivateProfileString(SECTION, FORMATKEY, "%f_%s_%r", screenshotFormat, MAX_FORMAT, IniName);

View File

@ -39,6 +39,7 @@
#define DEFAULTFORMATKEY "defaultFormat"
#define NEEDSSAVINGKEY "needsSaving"
#define LASTVISITKEY "lastVisit"
#define LUAKEY "Lua"
#define MAX_FORMAT 20