mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00: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:
parent
4b7748f3c0
commit
297012ddd7
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue