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.
This commit is contained in:
Ryan Houdek 2015-03-17 21:27:40 -05:00
parent 4b7748f3c0
commit 297012ddd7
1 changed files with 3 additions and 0 deletions

View File

@ -822,6 +822,9 @@ const std::string& GetUserPath(unsigned int dir_index)
// Rebuilds internal directory structure to compensate for the new directory // Rebuilds internal directory structure to compensate for the new directory
void SetUserPath(unsigned int dir_index, const std::string& path) void SetUserPath(unsigned int dir_index, const std::string& path)
{ {
if (path.empty())
return;
s_user_paths[dir_index] = path; s_user_paths[dir_index] = path;
RebuildUserDirectories(dir_index); RebuildUserDirectories(dir_index);
} }