mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Load game info on restoring saves
This commit is contained in:
parent
76c82882ad
commit
89b8fc07d9
@ -78,7 +78,9 @@ public:
|
||||
if (this->loadSnapshot)
|
||||
{
|
||||
TheC64->LoadSnapshot(new_path);
|
||||
Gui::gui->sgv->loadGameInfo(fileName);
|
||||
|
||||
this->updateGameInfo(fileName);
|
||||
Gui::gui->updateGameInfo(Gui::gui->sgv->gameInfo->gi);
|
||||
ThePrefs.Load(prefs_path);
|
||||
} else
|
||||
unlink(new_path);
|
||||
@ -97,9 +99,9 @@ public:
|
||||
Gui::gui->popView();
|
||||
}
|
||||
|
||||
virtual void timeoutCallback()
|
||||
void updateGameInfo(const char *fileName)
|
||||
{
|
||||
char *cpy = xstrdup(this->pp_msgs[this->cur_sel]);
|
||||
char *cpy = xstrdup(fileName);
|
||||
char *p = strstr(cpy, ".sav");
|
||||
|
||||
if (p)
|
||||
@ -108,6 +110,11 @@ public:
|
||||
free(cpy);
|
||||
}
|
||||
|
||||
virtual void timeoutCallback()
|
||||
{
|
||||
this->updateGameInfo(this->pp_msgs[this->cur_sel]);
|
||||
}
|
||||
|
||||
bool loadSnapshot;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user