mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Adds the option to change the path to the wii nand root
when nand root is changed the current sysconf is saved, and the sysconf in the new location is either loaded (if exists) or the default sysconf is created wii menu item is updated when the root changes small fix to saving gamelist paths to .ini paths that are removed from the gui are now removed from the ini instead of simply changing the number of paths git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7555 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -47,6 +47,7 @@ bool SysConf::LoadFromFile(const char *filename)
|
||||
// Basic check
|
||||
if (!File::Exists(filename))
|
||||
{
|
||||
File::CreateFullPath(filename);
|
||||
GenerateSysConf();
|
||||
return true;
|
||||
}
|
||||
@ -404,6 +405,19 @@ bool SysConf::Save()
|
||||
return SaveToFile(m_Filename.c_str());
|
||||
}
|
||||
|
||||
void SysConf::UpdateLocation()
|
||||
{
|
||||
// if the old Wii User dir had a sysconf file save any settings that have been changed to it
|
||||
if (m_IsValid)
|
||||
Save();
|
||||
|
||||
// Clear the old filename and set the default filename to the new user path
|
||||
// So that it can be generated if the file does not exist in the new location
|
||||
m_Filename.clear();
|
||||
m_FilenameDefault = File::GetUserPath(F_WIISYSCONF_IDX);
|
||||
Reload();
|
||||
}
|
||||
|
||||
bool SysConf::Reload()
|
||||
{
|
||||
if (m_IsValid)
|
||||
|
Reference in New Issue
Block a user