diff options
Diffstat (limited to 'engines/cge2')
-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); } } |