diff options
author | Chris Apers | 2004-11-09 10:57:22 +0000 |
---|---|---|
committer | Chris Apers | 2004-11-09 10:57:22 +0000 |
commit | 8068fd40d4a9503fa61b3695468cca1afc7d40ec (patch) | |
tree | 6abc2e4447cb88ba6a36a1750cd671eb4d63b2d6 /backends/PalmOS/Src/scumm_globals.cpp | |
parent | 77618b5974c3c42770c45bd07855528828550473 (diff) | |
download | scummvm-rg350-8068fd40d4a9503fa61b3695468cca1afc7d40ec.tar.gz scummvm-rg350-8068fd40d4a9503fa61b3695468cca1afc7d40ec.tar.bz2 scummvm-rg350-8068fd40d4a9503fa61b3695468cca1afc7d40ec.zip |
Added Sword1 support
svn-id: r15748
Diffstat (limited to 'backends/PalmOS/Src/scumm_globals.cpp')
-rw-r--r-- | backends/PalmOS/Src/scumm_globals.cpp | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/backends/PalmOS/Src/scumm_globals.cpp b/backends/PalmOS/Src/scumm_globals.cpp index 2b2fc53b30..f234ef9d01 100644 --- a/backends/PalmOS/Src/scumm_globals.cpp +++ b/backends/PalmOS/Src/scumm_globals.cpp @@ -21,13 +21,10 @@ */ #include <PalmOS.h> -#include "start.h" +#include "palmdefs.h" #include "globals.h" #include "scumm_globals.h" -#include "stdafx.h" -#include "scumm.h" - static void GlbInitAll() { if (gVars->globals[GBVARS_COMMON]) { CALL_INIT(ScummFont) @@ -51,6 +48,11 @@ static void GlbInitAll() { CALL_INIT(Simon_Charset) } #endif +#ifndef DISABLE_SWORD1 + if (gVars->globals[GBVARS_SWORD1]) { + CALL_INIT(Sword1_fxList) + } +#endif #ifndef DISABLE_QUEEN if (gVars->globals[GBVARS_QUEEN]) { CALL_INIT(Queen_Talk) @@ -85,6 +87,11 @@ static void GlbReleaseAll() { CALL_RELEASE(Simon_Charset) } #endif +#ifndef DISABLE_SWORD1 + if (gVars->globals[GBVARS_SWORD1]) { + CALL_RELEASE(Sword1_fxList) + } +#endif #ifndef DISABLE_QUEEN if (gVars->globals[GBVARS_QUEEN]) { CALL_RELEASE(Queen_Talk) @@ -112,6 +119,7 @@ static DmOpenRef GlbOpenInternal(const Char *nameP) { void GlbOpen() { gVars->globals[GBVARS_COMMON]= GlbOpenInternal("Glbs::Common"); gVars->globals[GBVARS_SCUMM] = GlbOpenInternal("Glbs::Scumm"); + gVars->globals[GBVARS_SWORD1]= GlbOpenInternal("Glbs::Sword1"); gVars->globals[GBVARS_SIMON] = GlbOpenInternal("Glbs::Simon"); gVars->globals[GBVARS_QUEEN] = GlbOpenInternal("Glbs::Queen"); @@ -127,6 +135,8 @@ void GlbClose() { DmCloseDatabase(gVars->globals[GBVARS_SCUMM]); if (gVars->globals[GBVARS_SIMON]) DmCloseDatabase(gVars->globals[GBVARS_SIMON]); + if (gVars->globals[GBVARS_SWORD1]) + DmCloseDatabase(gVars->globals[GBVARS_SWORD1]); if (gVars->globals[GBVARS_QUEEN]) DmCloseDatabase(gVars->globals[GBVARS_QUEEN]); } |