mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
do not bail out on error (nw)
This commit is contained in:
parent
d718d3cc3d
commit
db1821f069
@ -15,6 +15,7 @@
|
|||||||
#include "machine/ldpr8210.h"
|
#include "machine/ldpr8210.h"
|
||||||
#include "machine/ldv1000.h"
|
#include "machine/ldv1000.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
#include "ui/uimain.h"
|
||||||
|
|
||||||
#include "pr8210.lh"
|
#include "pr8210.lh"
|
||||||
|
|
||||||
@ -189,8 +190,10 @@ chd_file *ldplayer_state::get_disc()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// if we failed, pop a message and exit
|
// if we failed, pop a message and exit
|
||||||
if (found == false)
|
if (found == false) {
|
||||||
throw emu_fatalerror("No valid image file found!\n");
|
machine().ui().popup_time(10, "No valid image file found!\n");
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
return machine().rom_load().get_disk_handle("laserdisc");
|
return machine().rom_load().get_disk_handle("laserdisc");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user