mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-17 18:40:02 +00:00
Add Sys_Warn
This commit is contained in:
parent
b940a62f02
commit
7ace83eeab
@ -432,6 +432,28 @@ long _stdcall Sys_Crash( PEXCEPTION_POINTERS pInfo )
|
|||||||
return EXCEPTION_CONTINUE_EXECUTION;
|
return EXCEPTION_CONTINUE_EXECUTION;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
================
|
||||||
|
Sys_Warn
|
||||||
|
|
||||||
|
Just messagebox
|
||||||
|
================
|
||||||
|
*/
|
||||||
|
void Sys_Warn( const char *format, ... )
|
||||||
|
{
|
||||||
|
va_list argptr;
|
||||||
|
char text[MAX_SYSPATH];
|
||||||
|
|
||||||
|
DEBUG_BREAK;
|
||||||
|
|
||||||
|
va_start( argptr, format );
|
||||||
|
Q_vsnprintf( text, MAX_SYSPATH, format, argptr );
|
||||||
|
va_end( argptr );
|
||||||
|
Msg( "Sys_Warn: %s\n", text );
|
||||||
|
if( !Host_IsDedicated() ) // dedicated server should not hang on messagebox
|
||||||
|
MSGBOX(text);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
Sys_Error
|
Sys_Error
|
||||||
|
@ -81,6 +81,7 @@ double Sys_DoubleTime( void );
|
|||||||
char *Sys_GetClipboardData( void );
|
char *Sys_GetClipboardData( void );
|
||||||
char *Sys_GetCurrentUser( void );
|
char *Sys_GetCurrentUser( void );
|
||||||
int Sys_CheckParm( const char *parm );
|
int Sys_CheckParm( const char *parm );
|
||||||
|
void Sys_Warn( const char *format, ... );
|
||||||
void Sys_Error( const char *error, ... );
|
void Sys_Error( const char *error, ... );
|
||||||
qboolean Sys_LoadLibrary( dll_info_t *dll );
|
qboolean Sys_LoadLibrary( dll_info_t *dll );
|
||||||
void* Sys_GetProcAddress( dll_info_t *dll, const char* name );
|
void* Sys_GetProcAddress( dll_info_t *dll, const char* name );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user