summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/SysConf.cpp
diff options
context:
space:
mode:
authorGlenn Rice <glennricster@gmail.com>2010-02-02 21:56:29 +0000
committerGlenn Rice <glennricster@gmail.com>2010-02-02 21:56:29 +0000
commitfeba09f7a3e8d8e9b1ea2fe0d666c5be82941096 (patch)
treee695da77bfbd419355df9d29c799f6722d64ccef /Source/Core/Common/Src/SysConf.cpp
parenta090876bbd89ac656db2c1a5b81b778311b1c804 (diff)
Linux global build. At least the basic footwork is done here.
Basic usage: "sudo scons install=global install" Hopefully this doesn't break builds on Macs. I have tested this on linux and windows. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4994 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/SysConf.cpp')
-rw-r--r--Source/Core/Common/Src/SysConf.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/Core/Common/Src/SysConf.cpp b/Source/Core/Common/Src/SysConf.cpp
index 13fb688a0d..3477770816 100644
--- a/Source/Core/Common/Src/SysConf.cpp
+++ b/Source/Core/Common/Src/SysConf.cpp
@@ -21,13 +21,17 @@
SysConf::SysConf()
: m_IsValid(false)
{
-#if defined(__APPLE__)
- if (LoadFromFile(File::GetSysConfDirectory()))
-#else
- if (LoadFromFile(WII_SYSCONF_FILE))
-#endif
+ if (LoadFromFile(File::GetUserPath(F_WIISYSCONF_IDX)))
m_IsValid = true;
}
+
+void SysConf::Reload()
+{
+ if (m_IsValid)
+ return;
+ if (LoadFromFile(File::GetUserPath(F_WIISYSCONF_IDX)))
+ m_IsValid = true;
+}
SysConf::~SysConf()
{