mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
GROOVIE: debug dumpAllSurfaces warning when fail to create file
Instead of doing an error, just do a warning
This commit is contained in:
parent
ffa741578f
commit
1f14de9a46
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user