]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sys_win.c
Implement experimental hook-like system, with working example.
[xonotic/darkplaces.git] / sys_win.c
index de1f47187c2e0f766414bebf630c3d62cdcae9ed..54a482ed3120cddcaa365f7b2b96a58f35afcf21 100644 (file)
--- a/sys_win.c
+++ b/sys_win.c
@@ -64,7 +64,7 @@ void Sys_Error (const char *error, ...)
        dpvsnprintf (text, sizeof (text), error, argptr);
        va_end (argptr);
 
-       Con_Printf ("Quake Error: %s\n", text);
+       Con_Errorf ("Engine Error: %s\n", text);
 
        // close video so the message box is visible, unless we already tried that
        if (!in_sys_error0 && cls.state != ca_dedicated)
@@ -76,7 +76,7 @@ void Sys_Error (const char *error, ...)
        if (!in_sys_error3 && cls.state != ca_dedicated)
        {
                in_sys_error3 = true;
-               MessageBox(NULL, text, "Quake Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
+               MessageBox(NULL, text, "Engine Error", MB_OK | MB_SETFOREGROUND | MB_ICONSTOP);
        }
 
        if (!in_sys_error1)
@@ -240,11 +240,11 @@ void Sys_InitConsole (void)
        houtput = GetStdHandle (STD_OUTPUT_HANDLE);
        hinput = GetStdHandle (STD_INPUT_HANDLE);
 
-       // LordHavoc: can't check cls.state because it hasn't been initialized yet
+       // LadyHavoc: can't check cls.state because it hasn't been initialized yet
        // if (cls.state == ca_dedicated)
        if (COM_CheckParm("-dedicated"))
        {
-               //if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) // LordHavoc: on Windows XP this is never 0 or invalid, but hinput is invalid
+               //if ((houtput == 0) || (houtput == INVALID_HANDLE_VALUE)) // LadyHavoc: on Windows XP this is never 0 or invalid, but hinput is invalid
                {
                        if (!AllocConsole ())
                                Sys_Error ("Couldn't create dedicated server console (error code %x)", (unsigned int)GetLastError());