mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-01-31 17:31:53 +00:00
Extra warning for ROM path not set,
try to terminate in QuitEmulator()
This commit is contained in:
parent
aaf7c9e10d
commit
b39a1d7729
@ -269,6 +269,8 @@ bool InitEmulator (void)
|
||||
|
||||
// Get rom file path from preferences
|
||||
const char *rom_path = PrefsFindString("rom");
|
||||
if ( ! rom_path )
|
||||
WarningAlert("No rom pathname set. Trying ./ROM");
|
||||
|
||||
// Load Mac ROM
|
||||
int rom_fd = open(rom_path ? rom_path : ROM_FILE_NAME, O_RDONLY);
|
||||
@ -318,9 +320,6 @@ bool InitEmulator (void)
|
||||
|
||||
void QuitEmuNoExit()
|
||||
{
|
||||
// extern NSApplication *NSApp;
|
||||
|
||||
|
||||
D(bug("QuitEmulator\n"));
|
||||
|
||||
// Exit 680x0 emulation
|
||||
@ -361,14 +360,18 @@ void QuitEmuNoExit()
|
||||
|
||||
// Exit preferences
|
||||
PrefsExit();
|
||||
|
||||
// Stop run loop?
|
||||
//[NSApp terminate: nil];
|
||||
}
|
||||
|
||||
void QuitEmulator(void)
|
||||
{
|
||||
extern NSApplication *NSApp;
|
||||
|
||||
|
||||
QuitEmuNoExit();
|
||||
|
||||
// Stop run loop?
|
||||
[NSApp terminate: nil];
|
||||
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user