Options flag

svn-id: r10378
This commit is contained in:
Chris Apers 2003-09-23 16:04:10 +00:00
parent 4428e7eb30
commit e43fa49055

View File

@ -23,23 +23,38 @@
#ifndef GLOBALS_H
#define GLOBALS_H
#include <VFSMgr.h>
enum {
optNone = 0,
optIsARMDevice = 1 << 0,
optIsOS5Device = 1 << 1,
optIsClieDevice = 1 << 2,
optIsZodiacDevice = 1 << 3,
optHasWideMode = 1 << 4,
optIsLandscapeMode = 1 << 5,
optHas16BitMode = 1 << 6,
};
typedef struct {
DmOpenRef globals[3];
UInt32 options;
UInt16 HRrefNum;
UInt16 volRefNum;
UInt16 slkRefNum;
UInt32 slkVersion;
Boolean skinSet;
FileRef logFile;
Boolean vibrator;
Boolean autoReset;
Boolean screenLocked;
Boolean stdPalette;
Coord screenWidth, screenHeight; // with silkarea
Coord screenFullWidth, screenFullHeight; // without silkarea
Coord screenWidth, screenHeight; // silkarea shown
Coord screenFullWidth, screenFullHeight; // silkarea hidden
struct {
UInt8 on;
@ -57,5 +72,6 @@ typedef struct {
extern GlobalsDataPtr gVars;
#define OPTIONS(x) (gVars->options & (x))
#endif
#endif