[Scummvm-git-logs] scummvm master -> 6b296973316fddc0f4b605549856c6ef4c876c7e
dreammaster
noreply at scummvm.org
Sun Jan 18 05:11:43 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
6b29697331 MM: XEEN: Add file exists checks to bitmap overrides loading
Commit: 6b296973316fddc0f4b605549856c6ef4c876c7e
https://github.com/scummvm/scummvm/commit/6b296973316fddc0f4b605549856c6ef4c876c7e
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2026-01-18T15:54:56+11:00
Commit Message:
MM: XEEN: Add file exists checks to bitmap overrides loading
Changed paths:
engines/mm/shared/xeen/sprites.cpp
diff --git a/engines/mm/shared/xeen/sprites.cpp b/engines/mm/shared/xeen/sprites.cpp
index 4e96951897a..73ade399541 100644
--- a/engines/mm/shared/xeen/sprites.cpp
+++ b/engines/mm/shared/xeen/sprites.cpp
@@ -113,9 +113,9 @@ void SpriteResource::load(Common::SeekableReadStream &f) {
Image::BitmapDecoder bmpDecoder;
Common::File imgFile;
- if (imgFile.open(fnPNG.c_str()) && pngDecoder.loadStream(imgFile)) {
+ if (Common::File::exists(fnPNG.c_str()) && imgFile.open(fnPNG.c_str()) && pngDecoder.loadStream(imgFile)) {
_index[i]._override.copyFrom(*pngDecoder.getSurface());
- } else if (imgFile.open(fnBitmap.c_str()) && bmpDecoder.loadStream(imgFile)) {
+ } else if (Common::File::exists(fnBitmap.c_str()) && imgFile.open(fnBitmap.c_str()) && bmpDecoder.loadStream(imgFile)) {
_index[i]._override.copyFrom(*bmpDecoder.getSurface());
}
}
More information about the Scummvm-git-logs
mailing list