Browse Source

fix dedicated server build

pull/11/head
nillerusr 4 years ago
parent
commit
c70e496e72
  1. 4
      appframework/sdlmgr.cpp
  2. 3
      engine/host.cpp
  3. 6
      tier0/assert_dialog.cpp

4
appframework/sdlmgr.cpp

@ -4,8 +4,10 @@ @@ -4,8 +4,10 @@
//
//=============================================================================//
#ifdef USE_SDL
#include "SDL.h"
#include "SDL_opengl.h"
#endif
#include "appframework/ilaunchermgr.h"
#include "inputsystem/ButtonCode.h"
@ -66,7 +68,7 @@ that Apple unhelpfully clamps you to vsync in this scenario, which would @@ -66,7 +68,7 @@ that Apple unhelpfully clamps you to vsync in this scenario, which would
explain the 60fps max.
There are a few options:
- SDL_WINDOW_FULLSCREEN mode will not use this new magic (only
- SDL_WAINDOW_FULLSCREEN mode will not use this new magic (only
SDL_WINDOW_FULLSCREEN_DESKTOP), but that brings other problems and I
wouldn't recommend a drastic change like that.

3
engine/host.cpp

@ -127,8 +127,11 @@ @@ -127,8 +127,11 @@
#endif
#if defined( LINUX )
#include <locale.h>
#ifdef USE_SDL
#include "SDL.h"
#endif
#endif
#include "ixboxsystem.h"
extern IXboxSystem *g_pXboxSystem;

6
tier0/assert_dialog.cpp

@ -23,7 +23,7 @@ @@ -23,7 +23,7 @@
#include <dlfcn.h>
#endif
#if defined( LINUX ) || defined( USE_SDL )
#if defined( USE_SDL )
// We lazily load the SDL shared object, and only reference functions if it's
// available, so this can be included on the dedicated server too.
@ -357,7 +357,7 @@ DBG_INTERFACE void SetAllAssertsDisabled( bool bAssertsDisabled ) @@ -357,7 +357,7 @@ DBG_INTERFACE void SetAllAssertsDisabled( bool bAssertsDisabled )
g_bAssertsEnabled = !bAssertsDisabled;
}
#if defined( LINUX ) || defined( USE_SDL )
#if defined( USE_SDL )
SDL_Window *g_SDLWindow = NULL;
DBG_INTERFACE void SetAssertDialogParent( struct SDL_Window *window )
@ -534,7 +534,7 @@ DBG_INTERFACE bool DoNewAssertDialog( const tchar *pFilename, int line, const tc @@ -534,7 +534,7 @@ DBG_INTERFACE bool DoNewAssertDialog( const tchar *pFilename, int line, const tc
DialogBox( g_hTier0Instance, MAKEINTRESOURCE( IDD_ASSERT_DIALOG ), hParentWindow, AssertDialogProc );
}
#elif defined( POSIX )
#elif defined( POSIX ) && defined ( USE_SDL )
static FUNC_SDL_ShowMessageBox *pfnSDLShowMessageBox = NULL;
if( !pfnSDLShowMessageBox )
{

Loading…
Cancel
Save