diff options
author | Eugene Sandulenko | 2016-05-10 17:12:13 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 18:07:36 +0200 |
commit | 543920a1d672c13d6015bf0cedcf1ebe2f827270 (patch) | |
tree | 72063a36bce3cc21ad5fe0a407a0f0c548689f20 /engines/scumm/he/moonbase/moonbase_fow.cpp | |
parent | 35335b253e046e1bc9f9b8cd04878708dc384492 (diff) | |
download | scummvm-rg350-543920a1d672c13d6015bf0cedcf1ebe2f827270.tar.gz scummvm-rg350-543920a1d672c13d6015bf0cedcf1ebe2f827270.tar.bz2 scummvm-rg350-543920a1d672c13d6015bf0cedcf1ebe2f827270.zip |
SCUMM HE: Started code for loading FOW resources
Diffstat (limited to 'engines/scumm/he/moonbase/moonbase_fow.cpp')
-rw-r--r-- | engines/scumm/he/moonbase/moonbase_fow.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/scumm/he/moonbase/moonbase_fow.cpp b/engines/scumm/he/moonbase/moonbase_fow.cpp index f76bebf89e..e907449f13 100644 --- a/engines/scumm/he/moonbase/moonbase_fow.cpp +++ b/engines/scumm/he/moonbase/moonbase_fow.cpp @@ -21,7 +21,9 @@ */ #include "common/config-manager.h" + #include "scumm/he/intern_he.h" +#include "scumm/he/moonbase/moonbase.h" namespace Scumm { @@ -108,10 +110,18 @@ bool Moonbase::setFOWImage(int image) { // PIECES BUBBLES CIRCLES SIMPLE* WEDGEY BUBBLE2 // WEDGE2 SPIKEY ANGLES SMOOTHED WUZZY SYS7-BEVELED - if (image >= -1 && image <= 12) + if (image >= -12 && image <= -1) resType = 210 - image; // 211-222 range else resType = 214; // default, SIMPLE + + if (_fileName.empty()) { // We are running for the first time + _fileName = _vm->generateFilename(-3); + + if (!_exe.loadFromEXE(_fileName)) + error("Cannot open file %s", _fileName.c_str()); + } + #if 0 // TODO HRSRC hResource = FindResource(g_hInst, resType, 10); if (hResource) { |