mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 02:44:56 +00:00
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
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user