diff options
author | Chris Apers | 2006-02-11 18:49:05 +0000 |
---|---|---|
committer | Chris Apers | 2006-02-11 18:49:05 +0000 |
commit | 9649fb50f31e454efc603389abd9d295981404b5 (patch) | |
tree | f333c11c4fb91f878a13acb0b5cc56cb03ea122a | |
parent | 98bb8ce5a9dc99735601576510026b169ea5273b (diff) | |
download | scummvm-rg350-9649fb50f31e454efc603389abd9d295981404b5.tar.gz scummvm-rg350-9649fb50f31e454efc603389abd9d295981404b5.tar.bz2 scummvm-rg350-9649fb50f31e454efc603389abd9d295981404b5.zip |
- Fixed volRefNum default value
- Added autosave option
svn-id: r20570
-rw-r--r-- | backends/PalmOS/Src/start.cpp | 9 | ||||
-rw-r--r-- | backends/PalmOS/Src/start.h | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/backends/PalmOS/Src/start.cpp b/backends/PalmOS/Src/start.cpp index 7af131ccf4..076c24d6c2 100644 --- a/backends/PalmOS/Src/start.cpp +++ b/backends/PalmOS/Src/start.cpp @@ -1,6 +1,7 @@ /* ScummVM - Scumm Interpreter * Copyright (C) 2001 Ludvig Strigeus * Copyright (C) 2001-2006 The ScummVM project + * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -265,12 +266,12 @@ static void AppLaunchCmdNotify(UInt16 LaunchFlags, SysNotifyParamType * pData) { if (gPrefs) { // gPrefs exists ? so we are in the palm selector CardSlotFormUpdate(); // redraw card list if needed - if (gPrefs->card.volRefNum == sysInvalidRefNum) { + if (gPrefs->card.volRefNum == vfsInvalidVolRef) { VFSAnyMountParamType *notifyDetailsP = (VFSAnyMountParamType *)pData->notifyDetailsP; gPrefs->card.volRefNum = notifyDetailsP->volRefNum; if (FrmGetFormPtr(MainForm) == FrmGetActiveForm()) - if (gPrefs->card.volRefNum != sysInvalidRefNum) { + if (gPrefs->card.volRefNum != vfsInvalidVolRef) { CardSlotCreateDirs(); FrmUpdateForm(MainForm, frmRedrawUpdateMSImport); } @@ -283,7 +284,7 @@ static void AppLaunchCmdNotify(UInt16 LaunchFlags, SysNotifyParamType * pData) { CardSlotFormUpdate(); if (gPrefs->card.volRefNum == (UInt16)pData->notifyDetailsP) { - gPrefs->card.volRefNum = sysInvalidRefNum; + gPrefs->card.volRefNum = vfsInvalidVolRef; if (FrmGetFormPtr(MainForm) == FrmGetActiveForm()) FrmUpdateForm(MainForm, frmRedrawUpdateMS); @@ -320,7 +321,7 @@ static UInt32 ScummVMPalmMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { #endif break; - case sysAppLaunchCmdNormalLaunch: + case sysAppLaunchCmdNormalLaunch: error = AppStart(); if (error) goto end; diff --git a/backends/PalmOS/Src/start.h b/backends/PalmOS/Src/start.h index 4f9f5b9173..4d3afade59 100644 --- a/backends/PalmOS/Src/start.h +++ b/backends/PalmOS/Src/start.h @@ -1,6 +1,7 @@ /* ScummVM - Scumm Interpreter * Copyright (C) 2001 Ludvig Strigeus * Copyright (C) 2001-2006 The ScummVM project + * Copyright (C) 2002-2006 Chris Apers - PalmOS Backend * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -44,6 +45,7 @@ typedef struct { Boolean stylusClick; UInt16 listPosition; + UInt16 autoSavePeriod; struct { UInt16 volRefNum; @@ -60,8 +62,10 @@ typedef struct { Boolean stdPalette; Boolean demoMode; Boolean copyProtection; - Boolean arm; + Boolean oldarm;// TODO : free slot... Boolean altIntro; + Boolean autoSave; + Boolean advancedMode; struct { Boolean enable; @@ -78,7 +82,7 @@ extern Boolean bLaunched; #define appPrefID 0x00 #define appVersionNum 0x01 -#define appPrefVersionNum 0x01 +#define appPrefVersionNum 0x02 #define STACK_DEFAULT 8192 #define STACK_LARGER 16384 |