diff options
author | Matthew Hoops | 2012-03-20 14:18:57 -0400 |
---|---|---|
committer | Matthew Hoops | 2012-03-20 14:49:16 -0400 |
commit | 71756bdf4eae5ba9cc3f329b85e894f04640aaef (patch) | |
tree | 40d464262da107ab5eed82f198685209161ebac1 /engines/cge | |
parent | 03eba05b09e5c9e5a351f8111185934b92a3fed3 (diff) | |
parent | 3c3576a224b92c703b4e8ea20008ac8a069980dd (diff) | |
download | scummvm-rg350-71756bdf4eae5ba9cc3f329b85e894f04640aaef.tar.gz scummvm-rg350-71756bdf4eae5ba9cc3f329b85e894f04640aaef.tar.bz2 scummvm-rg350-71756bdf4eae5ba9cc3f329b85e894f04640aaef.zip |
Merge remote branch 'upstream/master' into pegasus
Diffstat (limited to 'engines/cge')
-rw-r--r-- | engines/cge/bitmap.cpp | 10 | ||||
-rw-r--r-- | engines/cge/bitmap.h | 2 | ||||
-rw-r--r-- | engines/cge/cge.cpp | 1 | ||||
-rw-r--r-- | engines/cge/cge.h | 3 | ||||
-rw-r--r-- | engines/cge/detection.cpp | 2 | ||||
-rw-r--r-- | engines/cge/events.cpp | 1 | ||||
-rw-r--r-- | engines/cge/text.cpp | 4 |
7 files changed, 13 insertions, 10 deletions
diff --git a/engines/cge/bitmap.cpp b/engines/cge/bitmap.cpp index 4b5034756c..309b89bdda 100644 --- a/engines/cge/bitmap.cpp +++ b/engines/cge/bitmap.cpp @@ -158,7 +158,7 @@ BitmapPtr Bitmap::code() { debugC(1, kCGEDebugBitmap, "Bitmap::code()"); if (!_m) - return false; + return NULL; uint16 cnt; @@ -198,7 +198,7 @@ BitmapPtr Bitmap::code() { if ((pix == kPixelTransp) != skip || cnt >= 0x3FF0) { // end of block cnt |= (skip) ? kBmpSKP : kBmpCPY; if (_v) - *cp = TO_LE_16(cnt); // store block description uint16 + WRITE_LE_UINT16(cp, cnt); // store block description uint16 cp = (uint16 *) im; im += 2; @@ -220,7 +220,7 @@ BitmapPtr Bitmap::code() { } else { cnt |= kBmpCPY; if (_v) - *cp = TO_LE_16(cnt); + WRITE_LE_UINT16(cp, cnt); cp = (uint16 *) im; im += 2; @@ -232,13 +232,13 @@ BitmapPtr Bitmap::code() { if (cnt && ! skip) { cnt |= kBmpCPY; if (_v) - *cp = TO_LE_16(cnt); + WRITE_LE_UINT16(cp, cnt); cp = (uint16 *) im; im += 2; } if (_v) - *cp = TO_LE_16(kBmpEOI); + WRITE_LE_UINT16(cp, kBmpEOI); cp = (uint16 *) im; im += 2; } diff --git a/engines/cge/bitmap.h b/engines/cge/bitmap.h index e7179f3b0b..3de05ac2fd 100644 --- a/engines/cge/bitmap.h +++ b/engines/cge/bitmap.h @@ -49,7 +49,7 @@ enum { struct HideDesc { uint16 _skip; uint16 _hide; -}; +} PACKED_STRUCT; #include "common/pack-end.h" diff --git a/engines/cge/cge.cpp b/engines/cge/cge.cpp index 34e7d3f2f9..875ac34cd0 100644 --- a/engines/cge/cge.cpp +++ b/engines/cge/cge.cpp @@ -28,6 +28,7 @@ #include "common/EventRecorder.h" #include "common/file.h" #include "common/fs.h" +#include "engines/advancedDetector.h" #include "engines/util.h" #include "cge/cge.h" #include "cge/vga13h.h" diff --git a/engines/cge/cge.h b/engines/cge/cge.h index d324b293fa..4ebc836ee0 100644 --- a/engines/cge/cge.h +++ b/engines/cge/cge.h @@ -31,11 +31,12 @@ #include "engines/engine.h" #include "gui/debugger.h" #include "graphics/surface.h" -#include "engines/advancedDetector.h" #include "cge/console.h" #include "cge/bitmap.h" #include "cge/sound.h" +struct ADGameDescription; + namespace CGE { class Console; diff --git a/engines/cge/detection.cpp b/engines/cge/detection.cpp index 3fa3dbd7ff..b3ef31f30f 100644 --- a/engines/cge/detection.cpp +++ b/engines/cge/detection.cpp @@ -104,7 +104,7 @@ static const ADFileBasedFallback fileBasedFallback[] = { class CGEMetaEngine : public AdvancedMetaEngine { public: CGEMetaEngine() : AdvancedMetaEngine(CGE::gameDescriptions, sizeof(ADGameDescription), CGEGames) { - _singleid = "Soltys"; + _singleid = "soltys"; } virtual const ADGameDescription *fallbackDetect(const FileMap &allFiles, const Common::FSList &fslist) const { diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp index 7c98f00b7b..3c561c5659 100644 --- a/engines/cge/events.cpp +++ b/engines/cge/events.cpp @@ -30,6 +30,7 @@ #include "gui/message.h" #include "common/config-manager.h" #include "common/events.h" +#include "engines/advancedDetector.h" #include "cge/events.h" #include "cge/events.h" #include "cge/text.h" diff --git a/engines/cge/text.cpp b/engines/cge/text.cpp index 331dc8ac2d..fd4120d49d 100644 --- a/engines/cge/text.cpp +++ b/engines/cge/text.cpp @@ -72,7 +72,7 @@ int16 Text::count() { strcpy(tmpStr, line.c_str()); if ((s = strtok(tmpStr, " =,;/\t\n")) == NULL) continue; - if (!isdigit(*s)) + if (!Common::isDigit(*s)) continue; counter++; @@ -105,7 +105,7 @@ void Text::load() { strcpy(tmpStr, line.c_str()); if ((s = strtok(tmpStr, " =,;/\t\n")) == NULL) continue; - if (!isdigit(*s)) + if (!Common::isDigit(*s)) continue; int r = atoi(s); |