mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 05:24:21 +01:00
Correct prefs saving
This commit is contained in:
parent
17e2f4816c
commit
596796287e
@ -348,12 +348,18 @@ GuiView *Gui::popView()
|
|||||||
|
|
||||||
void Gui::exitMenu()
|
void Gui::exitMenu()
|
||||||
{
|
{
|
||||||
|
bool prefs_changed;
|
||||||
|
|
||||||
/* Pop all views */
|
/* Pop all views */
|
||||||
while (this->popView())
|
while (this->popView())
|
||||||
;
|
;
|
||||||
TheC64->NewPrefs(this->np);
|
TheC64->NewPrefs(this->np);
|
||||||
|
prefs_changed = ThePrefs != *this->np;
|
||||||
ThePrefs = *this->np;
|
ThePrefs = *this->np;
|
||||||
|
|
||||||
|
if (prefs_changed)
|
||||||
|
ThePrefs.Save(ThePrefs.PrefsPath);
|
||||||
|
|
||||||
this->saveGameInfo(this->metadata_base_path, this->cur_gameInfo->filename);
|
this->saveGameInfo(this->metadata_base_path, this->cur_gameInfo->filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user