Use new prefs

This commit is contained in:
simon.kagstrom 2010-03-13 07:31:22 +00:00
parent 30775231b9
commit dc74ffeb19

View File

@ -77,15 +77,15 @@ public:
if (this->loadSnapshot)
{
int display_type = ThePrefs.DisplayType;
int display_type = Gui::gui->np->DisplayType;
TheC64->LoadSnapshot(new_path);
this->updateGameInfo(fileName);
Gui::gui->updateGameInfo(Gui::gui->sgv->gameInfo->gi);
ThePrefs.Load(prefs_path);
Gui::gui->np->Load(prefs_path);
/* Don't change display type */
ThePrefs.DisplayType = display_type;
Gui::gui->np->DisplayType = display_type;
} else
unlink(new_path);
free(prefs_path);