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:
parent
e3e9ba99ee
commit
55bbd875db
1 changed files with 6 additions and 3 deletions
|
@ -242,13 +242,16 @@ void ScummEngine::askForDisk(const char *filename, int disknum) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
result = displayMessage("Quit", buf);
|
result = displayMessage("Quit", buf);
|
||||||
if (result == 2)
|
if (result == 2) {
|
||||||
error("Cannot find file: '%s'", filename);
|
//error("Cannot find file: '%s'", filename);
|
||||||
|
_system->quit();
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
sprintf(buf, "Cannot find file: '%s'", filename);
|
sprintf(buf, "Cannot find file: '%s'", filename);
|
||||||
InfoDialog dialog(this, (char*)buf);
|
InfoDialog dialog(this, (char*)buf);
|
||||||
runDialog(dialog);
|
runDialog(dialog);
|
||||||
error("Cannot find file: '%s'", filename);
|
//error("Cannot find file: '%s'", filename);
|
||||||
|
_system->quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue