mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-10 21:55:11 +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;
|
||||
else
|
||||
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)) {
|
||||
char tmp_filename[255];
|
||||
@ -108,7 +109,10 @@ public:
|
||||
Gui::gui->popView();
|
||||
|
||||
if (this->runStartSequence)
|
||||
{
|
||||
Gui::gui->exitMenu();
|
||||
TheC64->startFakeKeySequence("\nLOAD \"*\",8,1\nRUN\n");
|
||||
}
|
||||
}
|
||||
|
||||
virtual void hoverCallback(int which)
|
||||
|
@ -296,11 +296,10 @@ GuiView *Gui::popView()
|
||||
|
||||
void Gui::exitMenu()
|
||||
{
|
||||
printf("Exiting the menu system\n");
|
||||
|
||||
/* Pop all views */
|
||||
while (this->popView())
|
||||
;
|
||||
ThePrefs = *this->np;
|
||||
TheC64->NewPrefs(this->np);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user