From 1f14de9a465997d52c33d3d237d65ec9c48c3240 Mon Sep 17 00:00:00 2001 From: Die4Ever Date: Sat, 19 Feb 2022 23:55:17 -0600 Subject: [PATCH] GROOVIE: debug dumpAllSurfaces warning when fail to create file Instead of doing an error, just do a warning --- engines/groovie/video/roq.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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