diff --git a/Src/gui/gui.cpp b/Src/gui/gui.cpp index d685c42..1854b80 100644 --- a/Src/gui/gui.cpp +++ b/Src/gui/gui.cpp @@ -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); }