summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VideoConfig.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2015-07-02 22:27:01 +0200
committerAdmiral H. Curtiss <pikachu025@gmail.com>2015-07-02 22:27:01 +0200
commit4881ad2282fb8d485d2246c1acb7a9f6ff7bbe8b (patch)
tree99f88125f9ac0a06e2b6dc400db02a8a21f4b7ca /Source/Core/VideoCommon/VideoConfig.cpp
parent6a33f174de618dc698ceba02e792cc6b2dba9732 (diff)
Config: Hotfix to prevent per-game settings from ie. GameINIs being stored to the global user configuration.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp
index 1a989878f5..a5f5513d3f 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -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);