summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-12-22 12:37:22 +1300
committerScott Mansell <phiren@gmail.com>2015-12-22 12:37:22 +1300
commit1ce9c33f6cfc1930829092aa31308f3c0a88642b (patch)
treeb3b6156a0aa5bb0fb7db803b94f2c65a6aeed5de /Source/Core
parent4c428ed01946ab3137b910d99494ba0ca77665c7 (diff)
parent314914005247520b3a8ebed79de02c7a5d1fd794 (diff)
Merge pull request #3373 from JosJuice/temp-settings-ini-hotfix
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.cpp9
-rw-r--r--Source/Core/VideoCommon/VideoConfig.cpp7
2 files changed, 15 insertions, 1 deletions
diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp
index db933bceaf..d70daf08c9 100644
--- a/Source/Core/Core/ConfigManager.cpp
+++ b/Source/Core/Core/ConfigManager.cpp
@@ -12,7 +12,7 @@
#include "Common/StringUtil.h"
#include "Core/ConfigManager.h"
-#include "Core/Core.h" // for bWii
+#include "Core/Core.h"
#include "Core/Boot/Boot.h"
#include "Core/Boot/Boot_DOL.h"
#include "Core/FifoPlayer/FifoDataFile.h"
@@ -82,6 +82,13 @@ SConfig::~SConfig()
void SConfig::SaveSettings()
{
+ // TODO: This 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 a9181e7b21..4fcb1aac2f 100644
--- a/Source/Core/VideoCommon/VideoConfig.cpp
+++ b/Source/Core/VideoCommon/VideoConfig.cpp
@@ -269,6 +269,13 @@ void VideoConfig::VerifyValidity()
void VideoConfig::Save(const std::string& ini_file)
{
+ // TODO: This 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);