diff options
author | Strangerke | 2014-06-24 23:36:37 +0200 |
---|---|---|
committer | Strangerke | 2014-06-24 23:36:37 +0200 |
commit | 2bc35f6f6db4fd963d6348e2772d928d136480f8 (patch) | |
tree | f9774baeefe3816aca54942f17d829196a1c9bee | |
parent | 3dd6c9f7aad7acf43cf90e5405047706ec697adc (diff) | |
download | scummvm-rg350-2bc35f6f6db4fd963d6348e2772d928d136480f8.tar.gz scummvm-rg350-2bc35f6f6db4fd963d6348e2772d928d136480f8.tar.bz2 scummvm-rg350-2bc35f6f6db4fd963d6348e2772d928d136480f8.zip |
CGE2: Add a work around for missing VBM in scene 4
-rw-r--r-- | engines/cge2/bitmap.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/cge2/bitmap.cpp b/engines/cge2/bitmap.cpp index c62a784110..6c7e39a00d 100644 --- a/engines/cge2/bitmap.cpp +++ b/engines/cge2/bitmap.cpp @@ -44,7 +44,14 @@ void Bitmap::setVM(CGE2Engine *vm) { Bitmap::Bitmap(CGE2Engine *vm, const char *fname) : _v(nullptr), _b(nullptr), _map(0), _vm(vm) { char pat[kMaxPath]; - forceExt(pat, fname, ".VBM"); + + if (!strcmp(fname, "04tal201")) { + strcpy(pat, "04tal202"); + warning("Workaround for missing VBM: 04tal201"); + } else + strcpy(pat, fname); + + forceExt(pat, pat, ".VBM"); if (_vm->_resman->exist(pat)) { EncryptedStream file(_vm, pat); @@ -53,7 +60,7 @@ Bitmap::Bitmap(CGE2Engine *vm, const char *fname) : _v(nullptr), _b(nullptr), _m if (!loadVBM(&file)) error("Bad VBM [%s]", fname); } else { - error("Bad VBM [%s]", fname); + warning("Missing VBM [%s]", pat); } } |