From 9ee1bae15094161c0accd22dd80f8eed3568684e Mon Sep 17 00:00:00 2001
From: Oliver Schmidt
Date: Fri, 4 Jul 2014 19:33:35 +0200
Subject: [PATCH] Only wait for a keypress if the user is told to press a key.
---
platform/apple2enh/lib/error.c | 2 ++
platform/atarixl/lib/error.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/platform/apple2enh/lib/error.c b/platform/apple2enh/lib/error.c
index 2c5d5572e..b030d5877 100644
--- a/platform/apple2enh/lib/error.c
+++ b/platform/apple2enh/lib/error.c
@@ -42,8 +42,10 @@
void
error_exit(void)
{
+#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
+#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/
diff --git a/platform/atarixl/lib/error.c b/platform/atarixl/lib/error.c
index 2c5d5572e..b030d5877 100644
--- a/platform/atarixl/lib/error.c
+++ b/platform/atarixl/lib/error.c
@@ -42,8 +42,10 @@
void
error_exit(void)
{
+#if LOG_CONF_ENABLED
log_message("Press any key to continue ...", "");
ctk_arch_getkey();
+#endif /* LOG_CONF_ENABLED */
exit(EXIT_FAILURE);
}
/*-----------------------------------------------------------------------------------*/