[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src globals.h,1.13,1.14
Chris Apers
chrilith at users.sourceforge.net
Tue Nov 9 03:51:01 CET 2004
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14865
Modified Files:
globals.h
Log Message:
Init stuffs
Index: globals.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/globals.h,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- globals.h 12 Sep 2004 13:29:03 -0000 1.13
+++ globals.h 9 Nov 2004 11:50:04 -0000 1.14
@@ -28,7 +28,7 @@
#include "arm/native.h"
enum {
- kOptNone = 0,
+ kOptNone = 0,
kOptDeviceARM = 1 << 0x00,
kOptDeviceOS5 = 1 << 0x01,
kOptDeviceClie = 1 << 0x02,
@@ -55,10 +55,18 @@
kMemGamesCount
};
+enum {
+ INIT_VIBRATOR = 1 << 0x00,
+ INIT_PA1LIB = 1 << 0x01,
+ INIT_ARM = 1 << 0x02,
+ INIT_AUTOOFF = 1 << 0x03
+};
+
typedef struct {
DmOpenRef globals[GBVARS_COUNT];
UInt32 memory[kMemGamesCount];
+ UInt8 init;
UInt32 options;
UInt16 HRrefNum;
@@ -71,7 +79,6 @@
FileRef logFile;
Boolean vibrator;
- Boolean autoReset;
Boolean screenLocked;
Boolean stdPalette;
Boolean filter;
@@ -110,6 +117,12 @@
#define OPTIONS_SET(x) gVars->options |= (x)
#define OPTIONS_RST(x) gVars->options &= ~(x)
+#define HWR_INIT(x) (gVars->init & (x))
+#define HWR_SET(x) gVars->init |= (x)
+#define HWR_RST(x) gVars->init &= ~(x)
+#define HWR_RSTALL() gVars->init = 0
+#define HWR_GET() (gVars->init)
+
#define ARM(x) gVars->arm[x]
#endif
More information about the Scummvm-git-logs
mailing list