GROOVIE: debug dumpAllSurfaces warning when fail to create file

Instead of doing an error, just do a warning
This commit is contained in:
Die4Ever 2022-02-19 23:55:17 -06:00
parent ffa741578f
commit 1f14de9a46
No known key found for this signature in database
GPG Key ID: 00C99EDCC248D1B6

View File

@ -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