From 297012ddd744463b8bf744a5e4c613004a611aa0 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Tue, 17 Mar 2015 21:27:40 -0500 Subject: [PATCH] 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. --- Source/Core/Common/FileUtil.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); }