mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +01:00
Correct snapshot loading
This commit is contained in:
parent
756ae88990
commit
e6b297c573
@ -57,11 +57,14 @@ public:
|
||||
virtual void selectCallback(int which)
|
||||
{
|
||||
const char *fileName = this->pp_msgs[this->cur_sel];
|
||||
char buf[255];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s/%s",
|
||||
Gui::gui->save_game_path, fileName);
|
||||
if (this->loadSnapshot)
|
||||
TheC64->LoadSnapshot(fileName);
|
||||
TheC64->LoadSnapshot(buf);
|
||||
else
|
||||
unlink(fileName);
|
||||
unlink(buf);
|
||||
Gui::gui->popView();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user