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

This commit is contained in:
nillerusr 2023-12-13 21:28:17 +03:00
parent 327ea9dee7
commit b45295ef7c
4 changed files with 5 additions and 14 deletions

View File

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

View File

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

View File

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