mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Kill some horribly ugly hackery :( It's just not right to pass entire IniFile objects across DLLs. Only POD (plain-old-data, like int, float, char, char[] etc) are safe to pass across DLL boundaries.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4257 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -49,12 +49,13 @@ void CConfig::Save()
|
||||
file.Save(FULL_CONFIG_DIR "DSP.ini");
|
||||
}
|
||||
|
||||
void CConfig::GameIniLoad() {
|
||||
IniFile *iniFile = ((struct SConfig *)globals->config)->m_LocalCoreStartupParameter.gameIni;
|
||||
if (! iniFile)
|
||||
return;
|
||||
|
||||
if (iniFile->Exists("HLEaudio", "UseRE0Fix"))
|
||||
iniFile->Get("HLEaudio", "UseRE0Fix", &m_EnableRE0Fix, 0);
|
||||
void CConfig::GameIniLoad(const char *game_ini)
|
||||
{
|
||||
if (game_ini && strlen(game_ini))
|
||||
{
|
||||
IniFile iniFile;
|
||||
iniFile.Load(game_ini);
|
||||
iniFile.Get("HLEaudio", "UseRE0Fix", &m_EnableRE0Fix, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user