1 |
|
/* |
2 |
|
* powerrom_cpu.cpp - Using the 680x0 emulator in PowerMac ROMs for Basilisk II |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2001 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
31 |
|
#include "main.h" |
32 |
|
#include "emul_op.h" |
33 |
|
#include "prefs.h" |
34 |
+ |
#include "timer.h" |
35 |
|
#include "user_strings.h" |
36 |
|
|
37 |
|
#include "sheep_driver.h" |
809 |
|
try { |
810 |
|
load_rom(); |
811 |
|
} catch (file_open_error) { |
812 |
< |
ErrorAlert(GetString(STR_NO_ROM_FILE_ERR)); |
812 |
> |
ErrorAlert(STR_NO_ROM_FILE_ERR); |
813 |
|
return false; |
814 |
|
} catch (file_read_error) { |
815 |
< |
ErrorAlert(GetString(STR_ROM_FILE_READ_ERR)); |
815 |
> |
ErrorAlert(STR_ROM_FILE_READ_ERR); |
816 |
|
return false; |
817 |
|
} catch (rom_size_error) { |
818 |
< |
ErrorAlert(GetString(STR_ROM_SIZE_ERR)); |
818 |
> |
ErrorAlert(STR_ROM_SIZE_ERR); |
819 |
|
return false; |
820 |
|
} |
821 |
|
|
1239 |
|
|
1240 |
|
void TriggerInterrupt(void) |
1241 |
|
{ |
1242 |
+ |
idle_resume(); |
1243 |
|
if (emul_thread > 0 && ReadyForSignals) |
1244 |
|
send_signal(emul_thread, SIGUSR1); |
1245 |
|
} |