mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-19 22:02:41 +01:00
Make it possible to load files
This commit is contained in:
parent
f78a26462f
commit
57a47a036d
@ -63,7 +63,8 @@ public:
|
|||||||
save_game = fileName;
|
save_game = fileName;
|
||||||
else
|
else
|
||||||
save_game = save_game + 1; /* Skip '/' */
|
save_game = save_game + 1; /* Skip '/' */
|
||||||
strncpy(Gui::gui->np->DrivePath[0], fileName, sizeof(Gui::gui->np->DrivePath[0]));
|
snprintf(Gui::gui->np->DrivePath[0], sizeof(Gui::gui->np->DrivePath[0]),
|
||||||
|
"%s/%s", Gui::gui->game_base_path, fileName);
|
||||||
|
|
||||||
if (ext_matches_list(fileName, prg_exts)) {
|
if (ext_matches_list(fileName, prg_exts)) {
|
||||||
char tmp_filename[255];
|
char tmp_filename[255];
|
||||||
@ -108,7 +109,10 @@ public:
|
|||||||
Gui::gui->popView();
|
Gui::gui->popView();
|
||||||
|
|
||||||
if (this->runStartSequence)
|
if (this->runStartSequence)
|
||||||
|
{
|
||||||
|
Gui::gui->exitMenu();
|
||||||
TheC64->startFakeKeySequence("\nLOAD \"*\",8,1\nRUN\n");
|
TheC64->startFakeKeySequence("\nLOAD \"*\",8,1\nRUN\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void hoverCallback(int which)
|
virtual void hoverCallback(int which)
|
||||||
|
@ -296,11 +296,10 @@ GuiView *Gui::popView()
|
|||||||
|
|
||||||
void Gui::exitMenu()
|
void Gui::exitMenu()
|
||||||
{
|
{
|
||||||
printf("Exiting the menu system\n");
|
|
||||||
|
|
||||||
/* Pop all views */
|
/* Pop all views */
|
||||||
while (this->popView())
|
while (this->popView())
|
||||||
;
|
;
|
||||||
|
ThePrefs = *this->np;
|
||||||
TheC64->NewPrefs(this->np);
|
TheC64->NewPrefs(this->np);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user