spu2-x: Fix a bug in my last commit.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3073 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2010-05-25 05:33:21 +00:00
parent 94ae54d6c0
commit ef8039ed1d
3 changed files with 4 additions and 1 deletions

View File

@ -39,7 +39,7 @@ void CfgSetSettingsDir(const char* dir)
FileLog("CfgSetSettingsDir(%s)\n", dir); FileLog("CfgSetSettingsDir(%s)\n", dir);
path = wxString::FromAscii(dir) + L"/spu2-x.ini"; path = wxString::FromAscii(dir) + L"/spu2-x.ini";
pathSet = true; pathSet = true;
initIni(); //initIni();
} }
void CfgWriteBool(const wchar_t* Section, const wchar_t* Name, bool Value) void CfgWriteBool(const wchar_t* Section, const wchar_t* Name, bool Value)

View File

@ -257,7 +257,9 @@ void DisplayDialog()
void configure() void configure()
{ {
initIni();
ReadSettings(); ReadSettings();
DisplayDialog(); DisplayDialog();
WriteSettings(); WriteSettings();
delete spuConfig;
} }

View File

@ -112,4 +112,5 @@ void configure();
void AboutBox(); void AboutBox();
extern wxFileConfig *spuConfig; extern wxFileConfig *spuConfig;
extern bool pathSet; extern bool pathSet;
extern void initIni();
#endif // CONFIG_H_INCLUDED #endif // CONFIG_H_INCLUDED