mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 09:09:52 -06:00
Stable: another small HLE fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/branches/stable@5294 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -36,6 +36,7 @@ void CConfig::Load()
|
|||||||
file.Load((std::string(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
|
file.Load((std::string(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
|
||||||
file.Get("Config", "EnableHLEAudio", &m_EnableHLEAudio, true); // Sound Settings
|
file.Get("Config", "EnableHLEAudio", &m_EnableHLEAudio, true); // Sound Settings
|
||||||
file.Get("Config", "EnableRE0AudioFix", &m_EnableRE0Fix, false); // RE0 Hack
|
file.Get("Config", "EnableRE0AudioFix", &m_EnableRE0Fix, false); // RE0 Hack
|
||||||
|
m_RE0Fix = m_EnableRE0Fix;
|
||||||
ac_Config.Load(file);
|
ac_Config.Load(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,3 +50,10 @@ void CConfig::Save()
|
|||||||
|
|
||||||
file.Save((std::string(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
|
file.Save((std::string(File::GetUserPath(D_CONFIG_IDX)) + "DSP.ini").c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CConfig::LoadGameIni(const char* gameIniPath)
|
||||||
|
{
|
||||||
|
IniFile gameIni;
|
||||||
|
gameIni.Load(gameIniPath);
|
||||||
|
gameIni.Get("HLEaudio", "UseRE0Fix", &m_RE0Fix, m_EnableRE0Fix);
|
||||||
|
}
|
||||||
|
@ -23,12 +23,17 @@
|
|||||||
struct CConfig
|
struct CConfig
|
||||||
{
|
{
|
||||||
bool m_EnableHLEAudio;
|
bool m_EnableHLEAudio;
|
||||||
|
//is the RE0 fix enabled in config?
|
||||||
bool m_EnableRE0Fix;
|
bool m_EnableRE0Fix;
|
||||||
|
//is the RE0 supposed to be used?
|
||||||
|
//this value includes game.ini, avoiding overwrite of config
|
||||||
|
bool m_RE0Fix;
|
||||||
|
|
||||||
CConfig();
|
CConfig();
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
void Save();
|
void Save();
|
||||||
|
void LoadGameIni(const char*);
|
||||||
};
|
};
|
||||||
|
|
||||||
extern CConfig g_Config;
|
extern CConfig g_Config;
|
||||||
|
@ -142,8 +142,9 @@ void GetDllInfo(PLUGIN_INFO* _PluginInfo)
|
|||||||
|
|
||||||
void SetDllGlobals(PLUGIN_GLOBALS* _pPluginGlobals)
|
void SetDllGlobals(PLUGIN_GLOBALS* _pPluginGlobals)
|
||||||
{
|
{
|
||||||
globals = _pPluginGlobals;
|
globals = _pPluginGlobals;
|
||||||
LogManager::SetInstance((LogManager *)globals->logManager);
|
LogManager::SetInstance((LogManager *)globals->logManager);
|
||||||
|
g_Config.LoadGameIni(globals->game_ini);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DllConfig(HWND _hParent)
|
void DllConfig(HWND _hParent)
|
||||||
|
Reference in New Issue
Block a user