Browse Source

dedicated(win32): fix crashes( now it works #310 #225 )

pull/323/head
nillerusr 1 year ago
parent
commit
b45295ef7c
  1. 2
      dedicated/sys_ded.cpp
  2. 4
      engine/cl_null.cpp
  3. 0
      engine/sys_stubwind.cpp
  4. 13
      engine/wscript

2
dedicated/sys_ded.cpp

@ -278,7 +278,7 @@ bool CDedicatedAppSystemGroup::PreInit( )
return false; return false;
#ifdef _WIN32 #ifdef _WIN32
g_bVGui = !CommandLine()->CheckParm( "-console" ); g_bVGui = CommandLine()->CheckParm( "-vgui" );
#endif #endif
CreateInterfaceFn factory = GetFactory(); CreateInterfaceFn factory = GetFactory();

4
engine/cl_null.cpp

@ -191,8 +191,4 @@ CClientState cl;
char g_minidumpinfo[ 4096 ] = {0}; char g_minidumpinfo[ 4096 ] = {0};
PAGED_POOL_INFO_t g_pagedpoolinfo = { 0 }; PAGED_POOL_INFO_t g_pagedpoolinfo = { 0 };
int g_iVCRPlaybackSleepInterval = 0;
IGame *game = NULL;
#endif #endif

0
engine/sys_linuxwind.cpp → engine/sys_stubwind.cpp

13
engine/wscript

@ -221,19 +221,14 @@ def build(bld):
] ]
if bld.env.DEST_OS == 'win32': if bld.env.DEST_OS == 'win32':
source += [ source += ['../public/tier0/memoverride.cpp']
'../public/tier0/memoverride.cpp',
]
else: else:
source += [ source += ['audio/snd_posix.cpp']
'sys_linuxwind.cpp',
'audio/snd_posix.cpp',
]
if bld.env.DEDICATED: if bld.env.DEDICATED:
source += ['cl_null.cpp'] source += ['cl_null.cpp', 'sys_stubwind.cpp']
else: else:
source += source_win if bld.env.DEST_OS == 'win32' else [] source += source_win if bld.env.DEST_OS == 'win32' else ['sys_stubwind.cpp']
source += [ source += [
'client_pch.cpp', 'client_pch.cpp',

Loading…
Cancel
Save