Skip to content

Commit

Permalink
FREESCAPE: fixed issue when adding the same type of game twice and re…
Browse files Browse the repository at this point in the history
…generated freescape.dat file
  • Loading branch information
neuromancer committed Jan 7, 2023
1 parent 66d89f3 commit 54ae69f
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
Binary file modified dists/engine-data/freescape.dat
Binary file not shown.
4 changes: 2 additions & 2 deletions engines/freescape/loaders/8bitBinaryLoader.cpp
Expand Up @@ -574,11 +574,11 @@ void FreescapeEngine::load8bitBinary(Common::SeekableReadStream *file, int offse

void FreescapeEngine::loadBundledImages() {
Image::BitmapDecoder decoder;
Common::String targetName = _targetName;
Common::String targetName = Common::String(_gameDescription->gameId);
if (isDOS() && isDemo())
Common::replace(targetName, "-demo", "");

Common::String borderFilename = targetName + "_" + Common::getRenderModeDescription(_renderMode) + ".bmp";
Common::String borderFilename = targetName + "_" + Common::getRenderModeCode(_renderMode) + ".bmp";
if (_dataBundle->hasFile(borderFilename)) {
Common::SeekableReadStream *borderFile = _dataBundle->createReadStreamForMember(borderFilename);
decoder.loadStream(*borderFile);
Expand Down

0 comments on commit 54ae69f

Please sign in to comment.