diff options
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/psp/image_viewer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/platform/psp/image_viewer.cpp b/backends/platform/psp/image_viewer.cpp index f3bcd988a2..791a5cc0e3 100644 --- a/backends/platform/psp/image_viewer.cpp +++ b/backends/platform/psp/image_viewer.cpp @@ -75,16 +75,19 @@ bool ImageViewer::load(int imageNum) { sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str()); GUI::TimedMessageDialog dialog(error, 4000); dialog.runModal(); + return false; } else if (status == PngLoader::OUT_OF_MEMORY) { sprintf(error, "Out of memory loading %s. Try making the image smaller", specificImageName.c_str()); GUI::TimedMessageDialog dialog(error, 4000); dialog.runModal(); + return false; } // try to load the image file if (!image.load()) { sprintf(error, "Cannot display %s. Not a proper PNG file", specificImageName.c_str()); GUI::TimedMessageDialog dialog(error, 4000); dialog.runModal(); + return false; } setConstantRendererOptions(); |