From 4dea9cc1869cd1b4abe258dd1d439b60efa57ab7 Mon Sep 17 00:00:00 2001 From: p989 Date: Wed, 1 Jul 2009 19:50:06 +0000 Subject: [PATCH] win32: fix lua path --- desmume/src/windows/pathsettings.cpp | 2 ++ desmume/src/windows/pathsettings.h | 1 + 2 files changed, 3 insertions(+) diff --git a/desmume/src/windows/pathsettings.cpp b/desmume/src/windows/pathsettings.cpp index 74d0cc582..74332c5d2 100644 --- a/desmume/src/windows/pathsettings.cpp +++ b/desmume/src/windows/pathsettings.cpp @@ -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); diff --git a/desmume/src/windows/pathsettings.h b/desmume/src/windows/pathsettings.h index 0abb466a5..054c96754 100644 --- a/desmume/src/windows/pathsettings.h +++ b/desmume/src/windows/pathsettings.h @@ -39,6 +39,7 @@ #define DEFAULTFORMATKEY "defaultFormat" #define NEEDSSAVINGKEY "needsSaving" #define LASTVISITKEY "lastVisit" +#define LUAKEY "Lua" #define MAX_FORMAT 20