Config: Hotfix to prevent per-game settings from ie. GameINIs being stored to the global user configuration.

This commit is contained in:
Admiral H. Curtiss
2015-07-02 22:27:01 +02:00
parent 6a33f174de
commit 4881ad2282
2 changed files with 15 additions and 0 deletions

View File

@ -239,6 +239,13 @@ void VideoConfig::VerifyValidity()
void VideoConfig::Save(const std::string& ini_file)
{
// TODO: The is a hotfix to prevent writing of temporary per-game settings
// (GameINI, Movie, Netplay, ...) to the global Dolphin configuration file.
// The Config logic should be rewritten instead so that per-game settings
// aren't stored in the same configuration as the actual user settings.
if (Core::IsRunning())
return;
IniFile iniFile;
iniFile.Load(ini_file);