Skip to content

Commit

Permalink
EasyRpg Flag: Move bmp.reset call to the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghabry committed May 15, 2024
1 parent 12599cf commit 7d4b56e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,12 @@ namespace {
Output::Warning("Invalid image: {}/{}", s.directory, filename);
} else {
if (bmp->GetOriginalBpp() > 8) {
// FIXME: This HasActiveTranslation check will also load 32 bit images in the game directory when
// a translation is active and our API does not expose whether the asset was redirected or not.
if (!Player::HasEasyRpgExtensions() && !Player::IsPatchManiac() && !Tr::HasActiveTranslation()) {
Output::Warning("Image {}/{} has a bit depth of {} that is not supported by RPG_RT. Enable EasyRPG Extensions or Maniac Patch to load such images.", s.directory, filename, bmp->GetOriginalBpp());
bmp.reset();
}

bmp.reset();
}
}
}
Expand Down

0 comments on commit 7d4b56e

Please sign in to comment.