|
|
|
@ -25,33 +25,14 @@ extern "C" {
@@ -25,33 +25,14 @@ extern "C" {
|
|
|
|
|
#include <setjmp.h> |
|
|
|
|
#include <stdio.h> |
|
|
|
|
#include <time.h> |
|
|
|
|
|
|
|
|
|
#ifdef XASH_SDL |
|
|
|
|
#include <SDL_messagebox.h> |
|
|
|
|
|
|
|
|
|
#define MSGBOX( x ) SDL_ShowSimpleMessageBox( SDL_MESSAGEBOX_ERROR, "Xash Error", x, NULL ) |
|
|
|
|
#define MSGBOX2( x ) SDL_ShowSimpleMessageBox( SDL_MESSAGEBOX_ERROR, "Host Error", x, host.hWnd ) |
|
|
|
|
#define MSGBOX3( x ) SDL_ShowSimpleMessageBox( SDL_MESSAGEBOX_ERROR, "Host Recursive Error", x, host.hWnd ) |
|
|
|
|
#elif defined(__ANDROID__) && !defined(XASH_DEDICATED) |
|
|
|
|
#define MSGBOX( x ) Android_MessageBox( "Xash Error", x ) |
|
|
|
|
#define MSGBOX2( x ) Android_MessageBox( "Host Error", x ) |
|
|
|
|
#define MSGBOX3( x ) Android_MessageBox( "Host Recursive Error", x ) |
|
|
|
|
#elif defined _WIN32 |
|
|
|
|
#define MSGBOX( x ) MessageBox( NULL, x, "Xash Error", MB_OK|MB_SETFOREGROUND|MB_ICONSTOP ) |
|
|
|
|
#define MSGBOX2( x ) MessageBox( host.hWnd, x, "Host Error", MB_OK|MB_SETFOREGROUND|MB_ICONSTOP ) |
|
|
|
|
#define MSGBOX3( x ) MessageBox( host.hWnd, x, "Host Recursive Error", MB_OK|MB_SETFOREGROUND|MB_ICONSTOP ) |
|
|
|
|
#else |
|
|
|
|
#define BORDER1 "======================================\n" |
|
|
|
|
#define MSGBOX( x ) fprintf( stderr, BORDER1 "Xash Error: %s\n" BORDER1, x ) |
|
|
|
|
#define MSGBOX2( x ) fprintf( stderr, BORDER1 "Host Error: %s\n" BORDER1, x ) |
|
|
|
|
#define MSGBOX3( x ) fprintf( stderr, BORDER1 "Host Recursive Error: %s\n" BORDER1, x ) |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#include "xash3d_types.h" |
|
|
|
|
|
|
|
|
|
#include "const.h" |
|
|
|
|
#include "crtlib.h" |
|
|
|
|
#include "platform/platform.h" |
|
|
|
|
|
|
|
|
|
#define MSGBOX( x ) Platform_MessageBox( "Xash Error", (x), false ); |
|
|
|
|
#define MSGBOX2( x ) Platform_MessageBox( "Host Error", (x), true ); |
|
|
|
|
#define MSGBOX3( x ) Platform_MessageBox( "Host Recursive Error", (x), true ); |
|
|
|
|
#define ASSERT( exp ) if(!( exp )) Sys_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ ) |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|