fix the issues Nadia pointed out
This commit is contained in:
parent
145c1639fb
commit
d7c90050af
|
@ -109,7 +109,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
currentDlg = new FirmwareSettingsDialog(parent);
|
currentDlg = new FirmwareSettingsDialog(parent);
|
||||||
currentDlg->show();
|
currentDlg->open();
|
||||||
return currentDlg;
|
return currentDlg;
|
||||||
}
|
}
|
||||||
static void closeDlg()
|
static void closeDlg()
|
||||||
|
|
|
@ -43,7 +43,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
currentDlg = new PathSettingsDialog(parent);
|
currentDlg = new PathSettingsDialog(parent);
|
||||||
currentDlg->show();
|
currentDlg->open();
|
||||||
return currentDlg;
|
return currentDlg;
|
||||||
}
|
}
|
||||||
static void closeDlg()
|
static void closeDlg()
|
||||||
|
|
|
@ -411,6 +411,22 @@ void Reset()
|
||||||
if (Config::ConsoleType == 1) EjectGBACart();
|
if (Config::ConsoleType == 1) EjectGBACart();
|
||||||
NDS::Reset();
|
NDS::Reset();
|
||||||
|
|
||||||
|
if ((CartType != -1) && NDSSave)
|
||||||
|
{
|
||||||
|
std::string oldsave = NDSSave->GetPath();
|
||||||
|
std::string newsave = GetAssetPath(false, Config::SaveFilePath, ".sav");
|
||||||
|
if (oldsave != newsave)
|
||||||
|
NDSSave->SetPath(newsave, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((GBACartType != -1) && GBASave)
|
||||||
|
{
|
||||||
|
std::string oldsave = GBASave->GetPath();
|
||||||
|
std::string newsave = GetAssetPath(true, Config::SaveFilePath, ".sav");
|
||||||
|
if (oldsave != newsave)
|
||||||
|
GBASave->SetPath(newsave, false);
|
||||||
|
}
|
||||||
|
|
||||||
if (!BaseROMName.empty())
|
if (!BaseROMName.empty())
|
||||||
{
|
{
|
||||||
if (Config::DirectBoot || NDS::NeedsDirectBoot())
|
if (Config::DirectBoot || NDS::NeedsDirectBoot())
|
||||||
|
|
Loading…
Reference in New Issue