summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2015-12-02 15:34:28 +0100
committerMarkus Wick <degasus@users.noreply.github.com>2015-12-02 15:34:28 +0100
commitc55481882f9350f6f4835df24efaca4e79ede045 (patch)
treefb77e920b03338234ff4b2f05419bf10b9d4973b /Source/Core
parent110ec72cff8a19c7125e6a69c691f1f67f755982 (diff)
parent4881ad2282fb8d485d2246c1acb7a9f6ff7bbe8b (diff)
Merge pull request #2687 from AdmiralCurtiss/temp-settings-ini-hotfixstable
Config Hotfix: Prevent per-game settings (ie. GameINI) being stored to the global user configuration.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/ConfigManager.cpp8
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp7
2 files changed, 15 insertions, 0 deletions
diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp
index 98cfa458a7..7ce41d7685 100644
--- a/Source/Core/Core/ConfigManager.cpp
+++ b/Source/Core/Core/ConfigManager.cpp
@@ -7,6 +7,7 @@
#include "Common/FileUtil.h"
#include "Common/IniFile.h"
#include "Core/ConfigManager.h"
+#include "Core/Core.h"
#include "Core/HW/SI.h"
#include "Core/PowerPC/PowerPC.h"
#include "DiscIO/NANDContentLoader.h"
@@ -39,6 +40,13 @@ SConfig::~SConfig()
void SConfig::SaveSettings()
{
+ // 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;
+
NOTICE_LOG(BOOT, "Saving settings to %s", File::GetUserPath(F_DOLPHINCONFIG_IDX).c_str());
IniFile ini;
ini.Load(File::GetUserPath(F_DOLPHINCONFIG_IDX)); // load first to not kill unknown stuff
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);