mirror of
https://github.com/kevinbentley/Descent3.git
synced 2026-04-07 02:00:05 -04:00
[Misc] Removed some leftover debug stuff that does nothing anymore.
This commit is contained in:
@@ -77,8 +77,6 @@
|
||||
|
||||
#define MAX_MSG_LEN 2000
|
||||
|
||||
void Default_dbgbrk_callback();
|
||||
|
||||
// Debug break chain handlers
|
||||
void (*DebugBreak_callback_stop)() = NULL;
|
||||
void (*DebugBreak_callback_resume)() = NULL;
|
||||
@@ -97,8 +95,8 @@ void error_Spew();
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// initializes error handler.
|
||||
bool error_Init(bool debugger, bool mono_debug, const char *app_title) {
|
||||
Debug_Init(debugger, mono_debug);
|
||||
bool error_Init(bool debugger, const char *app_title) {
|
||||
Debug_Init(debugger);
|
||||
|
||||
Error_initialized = true;
|
||||
Exit_message[0] = 0;
|
||||
@@ -114,8 +112,6 @@ bool error_Init(bool debugger, bool mono_debug, const char *app_title) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int no_debug_dialog = 0;
|
||||
|
||||
// exits the application and prints out a standard error message
|
||||
void Error(const char *fmt, ...) {
|
||||
std::va_list arglist;
|
||||
@@ -139,13 +135,10 @@ void Error(const char *fmt, ...) {
|
||||
|
||||
if (Debug_break)
|
||||
answer = Debug_ErrorBox(OSMBOX_ABORTRETRYIGNORE, Exit_title_str, Exit_message, "Press RETRY to debug.");
|
||||
else if (!no_debug_dialog)
|
||||
else
|
||||
answer = Debug_ErrorBox(OSMBOX_OKCANCEL, Exit_title_str, Exit_message,
|
||||
"Press OK to exit, CANCEL to ignore this error and continue.");
|
||||
|
||||
if (no_debug_dialog)
|
||||
answer = IDOK;
|
||||
|
||||
switch (answer) {
|
||||
case IDRETRY:
|
||||
debug_break(); // Step Out of this function to see where Error() was called
|
||||
@@ -225,7 +218,7 @@ void AssertionFailed(const char *expstr, const char *file, int line) {
|
||||
|
||||
// error message output function
|
||||
void error_Spew() {
|
||||
if (Exit_message[0] && !no_debug_dialog)
|
||||
if (Exit_message[0])
|
||||
Debug_MessageBox(OSMBOX_OK, Exit_title_str, Exit_message);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user