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