1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-30 08:57:49 +00:00

added ExitTurbo before showing DlgBox - this allows for safe recover after ActionReplay freeze

git-svn-id: svn://svn.cc65.org/cc65/trunk@2865 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
izydorst 2004-01-02 23:28:00 +00:00
parent 83342c6ee9
commit e94afbc0dd
4 changed files with 5 additions and 0 deletions

View File

@ -11,6 +11,8 @@
void _afailed (char* file, unsigned line) void _afailed (char* file, unsigned line)
{ {
ExitTurbo();
drawWindow.top = 0; drawWindow.top = 0;
drawWindow.left = 0; drawWindow.left = 0;
drawWindow.bot = 15; drawWindow.bot = 15;

View File

@ -13,6 +13,7 @@ void __fastcall__ _poserror (const char* msg)
{ {
const char *errmsg = _stroserror(_oserror); const char *errmsg = _stroserror(_oserror);
ExitTurbo();
if (msg && *msg) { if (msg && *msg) {
DlgBoxOk(msg, errmsg); DlgBoxOk(msg, errmsg);
} else { } else {

View File

@ -11,6 +11,7 @@
void abort (void) void abort (void)
{ {
ExitTurbo();
DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT); DlgBoxOk(CBOLDON "ABNORMAL PROGRAM", "TERMINATION." CPLAINTEXT);
exit(3); exit(3);
} }

View File

@ -13,6 +13,7 @@ void __fastcall__ perror(const char* msg)
{ {
const char *errmsg = strerror(errno); const char *errmsg = strerror(errno);
ExitTurbo();
if (msg && *msg) { if (msg && *msg) {
DlgBoxOk(msg, errmsg); DlgBoxOk(msg, errmsg);
} else { } else {