diff options
Diffstat (limited to 'backends/platform/PalmOS/Src/launcher/start.cpp')
-rw-r--r-- | backends/platform/PalmOS/Src/launcher/start.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/PalmOS/Src/launcher/start.cpp b/backends/platform/PalmOS/Src/launcher/start.cpp index 076c24d6c2..e68228cc77 100644 --- a/backends/platform/PalmOS/Src/launcher/start.cpp +++ b/backends/platform/PalmOS/Src/launcher/start.cpp @@ -43,7 +43,6 @@ GlobalsPreferencePtr gPrefs; GlobalsDataPtr gVars; Boolean bDirectMode = false; -Boolean bStartScumm = false; Boolean bLaunched = false; /*********************************************************************** @@ -200,6 +199,10 @@ static Boolean AppHandleEvent(EventPtr eventP) { FrmSetEventHandler(frmP, InfoFormHandleEvent); break; + case EngineForm: + FrmSetEventHandler(frmP, SelectorFormHandleEvent); + break; + default: // ErrFatalDisplay("Invalid Form Load Event"); break; @@ -231,9 +234,6 @@ static void AppEventLoop(void) { do { EvtGetEvent(&event, evtNoWait); - if(bStartScumm) - bStartScumm = StartScummVM(); - if (! SysHandleEvent(&event)) if (! MenuHandleEvent(0, &event, &error)) if (! AppHandleEvent(&event)) @@ -330,7 +330,7 @@ static UInt32 ScummVMPalmMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { FrmGotoForm(MainForm); }else { GamUnselect(); - bStartScumm = true; + FrmGotoForm(EngineForm); } AppEventLoop(); |