summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileUtil.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-03-17 21:27:40 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2015-03-17 21:27:40 -0500
commit297012ddd744463b8bf744a5e4c613004a611aa0 (patch)
tree2a73ba66e08d77b9f8034f8e337efd4eff84d943 /Source/Core/Common/FileUtil.cpp
parent4b7748f3c0e9dc9f2e6796d6d2ab30e37f6e6d86 (diff)
Fix Wii configuration path being incorrect.
On loading the NANDRoot from the config, if it isn't set it will still attempt to be set. So on the invalid empty path, just don't set it.
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
-rw-r--r--Source/Core/Common/FileUtil.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp
index 7a5f4ad0f6..966b372a92 100644
--- a/Source/Core/Common/FileUtil.cpp
+++ b/Source/Core/Common/FileUtil.cpp
@@ -822,6 +822,9 @@ const std::string& GetUserPath(unsigned int dir_index)
// Rebuilds internal directory structure to compensate for the new directory
void SetUserPath(unsigned int dir_index, const std::string& path)
{
+ if (path.empty())
+ return;
+
s_user_paths[dir_index] = path;
RebuildUserDirectories(dir_index);
}