Skip to content

Commit

Permalink
dedicated(win32): fix crashes( now it works #310 #225 )
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Dec 13, 2023
1 parent 327ea9d commit b45295e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dedicated/sys_ded.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 0 additions & 4 deletions engine/cl_null.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
File renamed without changes.
13 changes: 4 additions & 9 deletions engine/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit b45295e

Please sign in to comment.