Njoy can now be build with wxUSE_UNICODE 1 on windows

move all static ini paths to Common

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3896 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
LPFaint99
2009-07-28 08:27:45 +00:00
parent 989e5b7798
commit 22427f89bc
16 changed files with 96 additions and 78 deletions

View File

@ -31,7 +31,7 @@ void Config::Load()
{
std::string temp;
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "gfx_opengl.ini");
iniFile.Load(OPENGL_CONFIG_FILE);
// get resolution
iniFile.Get("Hardware", "WindowedRes", &temp, "640x480");
@ -83,7 +83,7 @@ void Config::Load()
iniFile.Get("Hacks", "ProjectionHack", &iPhackvalue, 0);
// Load common settings
iniFile.Load(FULL_CONFIG_DIR "Dolphin.ini");
iniFile.Load(CONFIG_FILE);
bool bTmp;
iniFile.Get("Interface", "UsePanicHandlers", &bTmp, true);
SetEnableAlert(bTmp);
@ -129,7 +129,7 @@ void Config::GameIniLoad()
void Config::Save()
{
IniFile iniFile;
iniFile.Load(FULL_CONFIG_DIR "gfx_opengl.ini");
iniFile.Load(OPENGL_CONFIG_FILE);
iniFile.Set("Hardware", "WindowedRes", iInternalRes);
iniFile.Set("Hardware", "FullscreenRes", iFSResolution);
iniFile.Set("Hardware", "Fullscreen", bFullscreen);
@ -175,5 +175,5 @@ void Config::Save()
iniFile.Set("Hacks", "EFBToTextureEnable", bCopyEFBToRAM);
iniFile.Set("Hacks", "ProjectionHack", iPhackvalue);
iniFile.Save(FULL_CONFIG_DIR "gfx_opengl.ini");
iniFile.Save(OPENGL_CONFIG_FILE);
}