diff options
author | Chris Apers | 2003-12-02 11:17:21 +0000 |
---|---|---|
committer | Chris Apers | 2003-12-02 11:17:21 +0000 |
commit | cf682ed8f7fb4325897b1692f40bbb9d073ed70e (patch) | |
tree | 646eb985337633087f79b1829931b7ea49e5dc8f /simon | |
parent | 182285508d04ac581bd5255c8df17db6a30b6ef0 (diff) | |
download | scummvm-rg350-cf682ed8f7fb4325897b1692f40bbb9d073ed70e.tar.gz scummvm-rg350-cf682ed8f7fb4325897b1692f40bbb9d073ed70e.tar.bz2 scummvm-rg350-cf682ed8f7fb4325897b1692f40bbb9d073ed70e.zip |
Added memory auto-configuration on PalmOS for better speed and compatibility
svn-id: r11472
Diffstat (limited to 'simon')
-rw-r--r-- | simon/simon.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp index e8d4fff924..2e65b2e91e 100644 --- a/simon/simon.cpp +++ b/simon/simon.cpp @@ -38,15 +38,17 @@ #include <errno.h> #include <time.h> -extern uint16 _debugLevel; +#ifdef __PALM_OS__ +#include "globals.h" +#endif #ifdef _WIN32_WCE - extern bool toolbar_drawn; extern bool draw_keyboard; - #endif +extern uint16 _debugLevel; + static const GameSettings simon_settings[] = { // Simon the Sorcerer 1 & 2 (not SCUMM games) {"simon1acorn", "Simon the Sorcerer 1 (Acorn)", MDT_ADLIB | MDT_NATIVE, GAME_SIMON1ACORN, "DATA"}, @@ -201,7 +203,11 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) TABLE_INDEX_BASE = 1580 / 4; TEXT_INDEX_BASE = 1500 / 4; NUM_VIDEO_OP_CODES = 75; +#ifndef __PALM_OS__ VGA_MEM_SIZE = 2000000; +#else + VGA_MEM_SIZE = gVars->memory[kMemSimon2Games]; +#endif TABLES_MEM_SIZE = 100000; MUSIC_INDEX_BASE = 1128 / 4; SOUND_INDEX_BASE = 1660 / 4; @@ -210,7 +216,11 @@ SimonEngine::SimonEngine(GameDetector *detector, OSystem *syst) TABLE_INDEX_BASE = 1576 / 4; TEXT_INDEX_BASE = 1460 / 4; NUM_VIDEO_OP_CODES = 64; +#ifndef __PALM_OS__ VGA_MEM_SIZE = 1000000; +#else + VGA_MEM_SIZE = gVars->memory[kMemSimon1Games]; +#endif TABLES_MEM_SIZE = 50000; MUSIC_INDEX_BASE = 1316 / 4; SOUND_INDEX_BASE = 0; |