[Scummvm-git-logs] scummvm master -> 1f14de9a465997d52c33d3d237d65ec9c48c3240
Die4Ever
noreply at scummvm.org
Sun Feb 20 05:55:38 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
1f14de9a46 GROOVIE: debug dumpAllSurfaces warning when fail to create file
Commit: 1f14de9a465997d52c33d3d237d65ec9c48c3240
https://github.com/scummvm/scummvm/commit/1f14de9a465997d52c33d3d237d65ec9c48c3240
Author: Die4Ever (die4ever2005 at gmail.com)
Date: 2022-02-19T23:55:17-06:00
Commit Message:
GROOVIE: debug dumpAllSurfaces warning when fail to create file
Instead of doing an error, just do a warning
Changed paths:
engines/groovie/video/roq.cpp
diff --git a/engines/groovie/video/roq.cpp b/engines/groovie/video/roq.cpp
index fd31ad01952..a80ac5df742 100644
--- a/engines/groovie/video/roq.cpp
+++ b/engines/groovie/video/roq.cpp
@@ -286,7 +286,7 @@ void writeImage(const Common::String filename, Graphics::Surface &surface) {
if (surface.h == 0 || surface.w == 0) {
return;
}
- Common::String tname = "img/" + filename;
+ Common::String tname = "imgf/" + filename;
#ifdef USE_PNG
tname += ".png";
#else
@@ -295,7 +295,8 @@ void writeImage(const Common::String filename, Graphics::Surface &surface) {
Common::DumpFile out;
if (!out.open(tname)) {
- error("failed to open %s", tname.c_str());
+ warning("failed to write debug image to %s", tname.c_str());
+ return;
}
#ifdef USE_PNG
More information about the Scummvm-git-logs
mailing list