mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-29 06:54:22 +01:00
Reset the C64 when invoking start
This commit is contained in:
parent
a470e21b63
commit
3eb348a930
@ -61,6 +61,24 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class StartGameListener : public TimeoutHandler
|
||||
{
|
||||
public:
|
||||
StartGameListener()
|
||||
{
|
||||
Gui::gui->status_bar->queueMessage("Resetting the C64");
|
||||
TheC64->Reset();
|
||||
Gui::gui->timerController->arm(this, 4000);
|
||||
}
|
||||
|
||||
virtual void timeoutCallback()
|
||||
{
|
||||
Gui::gui->status_bar->queueMessage("Invoking the load sequence");
|
||||
TheC64->startFakeKeySequence("\nLOAD \"*\",8,1\nRUN\n");
|
||||
delete this;
|
||||
}
|
||||
};
|
||||
|
||||
class DiscMenu : public FileBrowser, TimeoutHandler
|
||||
{
|
||||
friend class DiscView;
|
||||
@ -139,9 +157,10 @@ public:
|
||||
{
|
||||
/* Timeout and save the screenshot if there isn't one */
|
||||
new SaveScreenshot();
|
||||
/* And the start sequence */
|
||||
new StartGameListener();
|
||||
|
||||
Gui::gui->exitMenu();
|
||||
TheC64->startFakeKeySequence("\nLOAD \"*\",8,1\nRUN\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user