From 55bbd875db1b2d20dec0381f5bd392fdd9f78daa Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 4 Apr 2004 12:36:50 +0000 Subject: [PATCH] Exit quietly if we just told the user we are going to exit; no need to call error() (which pops up the console etc.) svn-id: r13456 --- scumm/resource.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scumm/resource.cpp b/scumm/resource.cpp index a762dff3730..5dd13c2f829 100644 --- a/scumm/resource.cpp +++ b/scumm/resource.cpp @@ -242,13 +242,16 @@ void ScummEngine::askForDisk(const char *filename, int disknum) { #endif result = displayMessage("Quit", buf); - if (result == 2) - error("Cannot find file: '%s'", filename); + if (result == 2) { + //error("Cannot find file: '%s'", filename); + _system->quit(); + } } else { sprintf(buf, "Cannot find file: '%s'", filename); InfoDialog dialog(this, (char*)buf); runDialog(dialog); - error("Cannot find file: '%s'", filename); + //error("Cannot find file: '%s'", filename); + _system->quit(); } }