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
This commit is contained in:
Max Horn 2004-04-04 12:36:50 +00:00
parent e3e9ba99ee
commit 55bbd875db

View File

@ -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();
}
}