aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS
diff options
context:
space:
mode:
authorChris Apers2006-02-11 18:20:17 +0000
committerChris Apers2006-02-11 18:20:17 +0000
commitf32a6e5c67c4fb2bbff39dbe6e6a2be2fea81909 (patch)
treebc669fd44dd832e9c7b03c5ba0d5be6416381bf8 /backends/PalmOS
parent65ed0e0ded5e7fe6580378344c4772a1bd971f79 (diff)
downloadscummvm-rg350-f32a6e5c67c4fb2bbff39dbe6e6a2be2fea81909.tar.gz
scummvm-rg350-f32a6e5c67c4fb2bbff39dbe6e6a2be2fea81909.tar.bz2
scummvm-rg350-f32a6e5c67c4fb2bbff39dbe6e6a2be2fea81909.zip
Fixed default volRefNum value
- Added scummvm header svn-id: r20559
Diffstat (limited to 'backends/PalmOS')
-rw-r--r--backends/PalmOS/Src/forms/formmain.cpp28
1 files changed, 26 insertions, 2 deletions
diff --git a/backends/PalmOS/Src/forms/formmain.cpp b/backends/PalmOS/Src/forms/formmain.cpp
index d363003d91..1709b4c7a2 100644
--- a/backends/PalmOS/Src/forms/formmain.cpp
+++ b/backends/PalmOS/Src/forms/formmain.cpp
@@ -1,3 +1,27 @@
+/* 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
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ * $URL$
+ * $Id$
+ *
+ */
+
#include <PalmOS.h>
#include "StarterRsc.h"
@@ -193,7 +217,7 @@ Boolean MainFormHandleEvent(EventPtr eventP)
IndexedColorType bgColor = UIColorGetTableEntryIndex(UIFormFill);
frmP = FrmGetFormPtr(MainForm);
- if (gPrefs->card.volRefNum != sysInvalidRefNum)
+ if (gPrefs->card.volRefNum != vfsInvalidVolRef)
idx = FrmGetObjectIndex (frmP, MainMSBitMap);
else
idx = FrmGetObjectIndex (frmP, MainMSNoneBitMap);
@@ -273,7 +297,7 @@ Boolean MainFormHandleEvent(EventPtr eventP)
break;
case skinButtonGameStart:
- if (gPrefs->card.volRefNum == sysInvalidRefNum)
+ if (gPrefs->card.volRefNum == vfsInvalidVolRef)
FrmCustomAlert(FrmWarnAlert,"Please select/insert a memory card.", 0, 0);
else
bStartScumm = true;