mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user