Add more ScummVM globals to PDB

svn-id: r7346
This commit is contained in:
Chris Apers 2003-05-05 12:29:26 +00:00
parent b1ff9cb1cd
commit 5944d40eaa
2 changed files with 35 additions and 1 deletions

View file

@ -524,6 +524,9 @@ void AkosRenderer::codec1_spec3() {
} while (1);
}
#ifdef __PALM_OS__
const byte *default_scale_table;
#else
const byte default_scale_table[768] = {
0x00, 0x80, 0x40, 0xC0, 0x20, 0xA0, 0x60, 0xE0,
0x10, 0x90, 0x50, 0xD0, 0x30, 0xB0, 0x70, 0xF0,
@ -624,6 +627,7 @@ const byte default_scale_table[768] = {
0x0F, 0x8F, 0x4F, 0xCF, 0x2F, 0xAF, 0x6F, 0xEF,
0x1F, 0x9F, 0x5F, 0xDF, 0x3F, 0xBF, 0x7F, 0xFF,
};
#endif
void AkosRenderer::codec1() {
int num_colors;
@ -1378,6 +1382,7 @@ bool Scumm::akos_increaseAnim(Actor *a, int chan, byte *aksq, uint16 *akfo, int
case AKC_SkipG:
case AKC_SkipLE:
case AKC_SkipL:
case AKC_SkipNE:
case AKC_SkipE:
curpos += 5;
@ -1650,3 +1655,13 @@ bool Scumm::akos_compare(int a, int b, byte cmd) {
return a >= b;
}
}
#ifdef __PALM_OS__
#include "scumm_globals.h" // init globals
void Akos_initGlobals() {
GSETPTR(default_scale_table, GBVARS_DEFAULTSCALETABLE_INDEX, byte, GBVARS_SCUMM)
}
void Akos_releaseGlobals() {
GRELEASEPTR(GBVARS_DEFAULTSCALETABLE_INDEX, GBVARS_SCUMM)
}
#endif

View file

@ -81,6 +81,11 @@ static const char* string_map_table_custom[] = {
"Please select an action" //27
};
#ifdef __PALM_OS__
static ResString *string_map_table_v7;
static ResString *string_map_table_v6;
static ResString *string_map_table_v5;
#else
static ResString string_map_table_v7[] = {
{96, "game name and version"}, //that's how it's supposed to be
{77, "Select a game to LOAD"},
@ -153,7 +158,7 @@ static ResString string_map_table_v5[] = {
{12, "Ok"},
{4, "Game paused"}
};
#endif
#pragma mark -
@ -758,3 +763,17 @@ void KeysDialog::handleKeyDown(uint16 ascii, int keycode, int modifiers) {
}
#endif
#ifdef __PALM_OS__
#include "scumm_globals.h" // init globals
void Dialogs_initGlobals() {
GSETPTR(string_map_table_v7, GBVARS_STRINGMAPTABLEV7_INDEX, ResString, GBVARS_SCUMM)
GSETPTR(string_map_table_v6, GBVARS_STRINGMAPTABLEV6_INDEX, ResString, GBVARS_SCUMM)
GSETPTR(string_map_table_v5, GBVARS_STRINGMAPTABLEV5_INDEX, ResString, GBVARS_SCUMM)
}
void Dialogs_releaseGlobals() {
GRELEASEPTR(GBVARS_STRINGMAPTABLEV7_INDEX, GBVARS_SCUMM)
GRELEASEPTR(GBVARS_STRINGMAPTABLEV6_INDEX, GBVARS_SCUMM)
GRELEASEPTR(GBVARS_STRINGMAPTABLEV5_INDEX, GBVARS_SCUMM)
}
#endif