diff options
author | Chris Apers | 2003-09-23 15:58:51 +0000 |
---|---|---|
committer | Chris Apers | 2003-09-23 15:58:51 +0000 |
commit | d0de9fff86c9e44e9c10b181028d759ebf770f29 (patch) | |
tree | 1aeb25818e40472412628302f25e572078d46f0e /backends/PalmOS/Src/scumm_globals.h | |
parent | 60259a052d76b6ed710b46beb3851dd5d356ec4d (diff) | |
download | scummvm-rg350-d0de9fff86c9e44e9c10b181028d759ebf770f29.tar.gz scummvm-rg350-d0de9fff86c9e44e9c10b181028d759ebf770f29.tar.bz2 scummvm-rg350-d0de9fff86c9e44e9c10b181028d759ebf770f29.zip |
Split palmstart.cpp into mutiple files
svn-id: r10375
Diffstat (limited to 'backends/PalmOS/Src/scumm_globals.h')
-rw-r--r-- | backends/PalmOS/Src/scumm_globals.h | 74 |
1 files changed, 46 insertions, 28 deletions
diff --git a/backends/PalmOS/Src/scumm_globals.h b/backends/PalmOS/Src/scumm_globals.h index 3dd5f08715..e19eea6077 100644 --- a/backends/PalmOS/Src/scumm_globals.h +++ b/backends/PalmOS/Src/scumm_globals.h @@ -19,28 +19,46 @@ * $Header$ * */ - -#define GBVARS_DIGSTATEMUSICMAP_INDEX 0 -#define GBVARS_DIGSTATEMUSICTABLE_INDEX 1 -#define GBVARS_COMISTATEMUSICTABLE_INDEX 2 -#define GBVARS_COMISEQMUSICTABLE_INDEX 3 -#define GBVARS_DIGSEQMUSICTABLE_INDEX 4 -#define GBVARS_FTSTATEMUSICTABLE_INDEX 5 -#define GBVARS_FTSEQMUSICTABLE_INDEX 6 -#define GBVARS_GUIFONT_INDEX 7 -#define GBVARS_DEFAULTSCALETABLE_INDEX 8 -#define GBVARS_IMCTABLE_INDEX 9 -#define GBVARS_CODEC47TABLE_INDEX 10 -#define GBVARS_TRANSITIONEFFECTS_INDEX 11 -#define GBVARS_STRINGMAPTABLEV7_INDEX 12 -#define GBVARS_STRINGMAPTABLEV6_INDEX 13 -#define GBVARS_STRINGMAPTABLEV5_INDEX 14 -#define GBVARS_GERMANCHARSETDATAV2_INDEX 15 -#define GBVARS_FRENCHCHARSETDATAV2_INDEX 16 -#define GBVARS_ENGLISHCHARSETDATAV2_INDEX 17 -#define GBVARS_ITALIANCHARSETDATAV2_INDEX 18 -#define GBVARS_SPANISHCHARSETDATAV2_INDEX 19 -#define GBVARS_COSTSCALETABLE_INDEX 20 + +#ifndef __SCUMM_GLOBALS_H__ +#define __SCUMM_GLOBALS_H__ + +enum { + GBVARS_DIGSTATEMUSICMAP_INDEX = 0, + GBVARS_DIGSTATEMUSICTABLE_INDEX, + GBVARS_COMISTATEMUSICTABLE_INDEX, + GBVARS_COMISEQMUSICTABLE_INDEX, + GBVARS_DIGSEQMUSICTABLE_INDEX, + GBVARS_FTSTATEMUSICTABLE_INDEX, + GBVARS_FTSEQMUSICTABLE_INDEX, + GBVARS_GUIFONT_INDEX, + GBVARS_DEFAULTSCALETABLE_INDEX, + GBVARS_IMCTABLE_INDEX, + GBVARS_CODEC47TABLE_INDEX, + GBVARS_TRANSITIONEFFECTS_INDEX, + GBVARS_STRINGMAPTABLEV7_INDEX, + GBVARS_STRINGMAPTABLEV6_INDEX, + GBVARS_STRINGMAPTABLEV5_INDEX, + GBVARS_GERMANCHARSETDATAV2_INDEX, + GBVARS_FRENCHCHARSETDATAV2_INDEX, + GBVARS_ENGLISHCHARSETDATAV2_INDEX, + GBVARS_ITALIANCHARSETDATAV2_INDEX, + GBVARS_SPANISHCHARSETDATAV2_INDEX, + GBVARS_COSTSCALETABLE_INDEX, + GBVARS_NOTELENGTHS_INDEX, + GBVARS_HULLOFFSETS_INDEX, + GBVARS_HULLS_INDEX, + GBVARS_FREQMODLENGTHS_INDEX, + GBVARS_FREQMODOFFSETS_INDEX, + GBVARS_FREQMODTABLE_INDEX, + GBVARS_SPKFREQTABLE_INDEX, + GBVARS_PCJRFREQTABLE_INDEX +}; + +void *GlbGetRecord(UInt16 index, UInt16 id); +void GlbReleaseRecord(UInt16 index, UInt16 id); +void GlbOpen(); +void GlbClose(); #define GBVARS_SCUMM 0 #define GBVARS_SIMON 1 @@ -54,11 +72,8 @@ #define CALL_INIT(x) initGlobals_##x(); #define CALL_RELEASE(x) releaseGlobals_##x(); -#define _GSETPTR(var,index,format,id) var = (format *)GBGetRecord(index,id); -#define _GRELEASEPTR(index,id) GBReleaseRecord(index,id); - -void *GBGetRecord(UInt16 index, UInt16 id); -void GBReleaseRecord(UInt16 index, UInt16 id); +#define _GSETPTR(var,index,format,id) var = (format *)GlbGetRecord(index,id); +#define _GRELEASEPTR(index,id) GlbReleaseRecord(index,id); #define PROTO_GLOBALS(x) void CALL_INIT(x);\ void CALL_RELEASE(x); @@ -72,5 +87,8 @@ PROTO_GLOBALS(Gfx) PROTO_GLOBALS(Dialogs) PROTO_GLOBALS(Charset) PROTO_GLOBALS(Costume) +PROTO_GLOBALS(PlayerV2) + +#undef PROTO_GLOBALS -#undef PROTO_GLOBALS
\ No newline at end of file +#endif
\ No newline at end of file |