mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 06:06:50 +00:00
dedicated(win32): fix build issues #322
This commit is contained in:
parent
7c863a351b
commit
ade05ab153
@ -7,7 +7,7 @@
|
|||||||
//
|
//
|
||||||
// Generated from the TEXTINCLUDE 2 resource.
|
// Generated from the TEXTINCLUDE 2 resource.
|
||||||
//
|
//
|
||||||
#include "afxres.h"
|
#include "windows.h"
|
||||||
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
#undef APSTUDIO_READONLY_SYMBOLS
|
#undef APSTUDIO_READONLY_SYMBOLS
|
||||||
|
@ -706,11 +706,13 @@ bool CBaseClient::SendServerInfo( void )
|
|||||||
|
|
||||||
serverinfo.WriteToBuffer( msg );
|
serverinfo.WriteToBuffer( msg );
|
||||||
|
|
||||||
if ( IsX360() && serverinfo.m_nMaxClients > 1 )
|
#ifdef _X360
|
||||||
|
if ( serverinfo.m_nMaxClients > 1 )
|
||||||
{
|
{
|
||||||
Msg( "Telling clients to connect" );
|
Msg( "Telling clients to connect" );
|
||||||
g_pMatchmaking->TellClientsToConnect();
|
g_pMatchmaking->TellClientsToConnect();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// send first tick
|
// send first tick
|
||||||
m_nSignonTick = m_Server->m_nTickCount;
|
m_nSignonTick = m_Server->m_nTickCount;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include "client_pch.h"
|
#include "client_pch.h"
|
||||||
#ifdef SWDS
|
#ifdef SWDS
|
||||||
|
#include "igame.h"
|
||||||
#include "hltvclientstate.h"
|
#include "hltvclientstate.h"
|
||||||
#include "convar.h"
|
#include "convar.h"
|
||||||
#include "enginestats.h"
|
#include "enginestats.h"
|
||||||
@ -37,9 +38,9 @@ bool CL_IsPortalDemo()
|
|||||||
|
|
||||||
bool HandleRedirectAndDebugLog( const char *msg );
|
bool HandleRedirectAndDebugLog( const char *msg );
|
||||||
|
|
||||||
void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode ) {}
|
//void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode ) {}
|
||||||
|
//void EndLoadingUpdates() {}
|
||||||
void RefreshScreenIfNecessary() {}
|
void RefreshScreenIfNecessary() {}
|
||||||
void EndLoadingUpdates() {}
|
|
||||||
|
|
||||||
|
|
||||||
void Con_ColorPrintf( const Color& clr, const char *fmt, ... )
|
void Con_ColorPrintf( const Color& clr, const char *fmt, ... )
|
||||||
@ -190,4 +191,8 @@ 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
|
||||||
|
@ -97,22 +97,19 @@ COM_ExplainDisconnection
|
|||||||
*/
|
*/
|
||||||
void COM_ExplainDisconnection( bool bPrint, const char *fmt, ... )
|
void COM_ExplainDisconnection( bool bPrint, const char *fmt, ... )
|
||||||
{
|
{
|
||||||
if ( IsX360() )
|
#ifdef _X360
|
||||||
{
|
g_pMatchmaking->SessionNotification( SESSION_NOTIFY_LOST_SERVER );
|
||||||
g_pMatchmaking->SessionNotification( SESSION_NOTIFY_LOST_SERVER );
|
#else
|
||||||
}
|
va_list argptr;
|
||||||
else
|
char string[1024];
|
||||||
{
|
|
||||||
va_list argptr;
|
|
||||||
char string[1024];
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
va_start (argptr, fmt);
|
||||||
Q_vsnprintf(string, sizeof( string ), fmt,argptr);
|
Q_vsnprintf(string, sizeof( string ), fmt,argptr);
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
Q_strncpy( gszDisconnectReason, string, 256 );
|
Q_strncpy( gszDisconnectReason, string, 256 );
|
||||||
gfExtendedError = true;
|
gfExtendedError = true;
|
||||||
}
|
#endif
|
||||||
|
|
||||||
if ( bPrint )
|
if ( bPrint )
|
||||||
{
|
{
|
||||||
@ -146,21 +143,18 @@ COM_ExtendedExplainDisconnection
|
|||||||
*/
|
*/
|
||||||
void COM_ExtendedExplainDisconnection( bool bPrint, const char *fmt, ... )
|
void COM_ExtendedExplainDisconnection( bool bPrint, const char *fmt, ... )
|
||||||
{
|
{
|
||||||
if ( IsX360() )
|
#ifdef _X360
|
||||||
{
|
g_pMatchmaking->SessionNotification( SESSION_NOTIFY_LOST_SERVER );
|
||||||
g_pMatchmaking->SessionNotification( SESSION_NOTIFY_LOST_SERVER );
|
#else
|
||||||
}
|
va_list argptr;
|
||||||
else
|
char string[1024];
|
||||||
{
|
|
||||||
va_list argptr;
|
|
||||||
char string[1024];
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
Q_vsnprintf(string, sizeof( string ), fmt,argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
|
|
||||||
Q_strncpy( gszExtendedDisconnectReason, string, 256 );
|
va_start (argptr, fmt);
|
||||||
}
|
Q_vsnprintf(string, sizeof( string ), fmt,argptr);
|
||||||
|
va_end (argptr);
|
||||||
|
|
||||||
|
Q_strncpy( gszExtendedDisconnectReason, string, 256 );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( bPrint )
|
if ( bPrint )
|
||||||
{
|
{
|
||||||
|
@ -3500,10 +3500,12 @@ void _Host_RunFrame (float time)
|
|||||||
//-------------------
|
//-------------------
|
||||||
_Host_RunFrame_Sound();
|
_Host_RunFrame_Sound();
|
||||||
|
|
||||||
|
#ifndef DEDICATED
|
||||||
if ( g_bVCRSingleStep )
|
if ( g_bVCRSingleStep )
|
||||||
{
|
{
|
||||||
VCR_EnterPausedState();
|
VCR_EnterPausedState();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -4353,20 +4353,20 @@ ModelInstanceHandle_t CModelRender::CreateInstance( IClientRenderable *pRenderab
|
|||||||
|
|
||||||
// validate static color meshes once, now at load/create time
|
// validate static color meshes once, now at load/create time
|
||||||
ValidateStaticPropColorData( handle );
|
ValidateStaticPropColorData( handle );
|
||||||
|
|
||||||
// 360 persists the color meshes across same map loads
|
// 360 persists the color meshes across same map loads
|
||||||
if ( !IsX360() || instance.m_ColorMeshHandle == DC_INVALID_HANDLE )
|
#ifdef _X360
|
||||||
|
if ( r_decalstaticprops.GetBool() && instance.m_LightCacheHandle )
|
||||||
|
instance.m_AmbientLightingState = *(LightcacheGetStatic( *pCache, NULL, LIGHTCACHEFLAGS_STATIC ));
|
||||||
|
#else
|
||||||
|
if ( instance.m_ColorMeshHandle == DC_INVALID_HANDLE )
|
||||||
{
|
{
|
||||||
// builds out color meshes or loads disk colors, now at load/create time
|
// builds out color meshes or loads disk colors, now at load/create time
|
||||||
RecomputeStaticLighting( handle );
|
RecomputeStaticLighting( handle );
|
||||||
}
|
}
|
||||||
else
|
#endif
|
||||||
if ( r_decalstaticprops.GetBool() && instance.m_LightCacheHandle )
|
|
||||||
{
|
|
||||||
instance.m_AmbientLightingState = *(LightcacheGetStatic( *pCache, NULL, LIGHTCACHEFLAGS_STATIC ));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return handle;
|
return handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1534,7 +1534,7 @@ void Sys_NoCrashDialog()
|
|||||||
|
|
||||||
void Sys_TestSendKey( const char *pKey )
|
void Sys_TestSendKey( const char *pKey )
|
||||||
{
|
{
|
||||||
#if defined(_WIN32) && !defined(USE_SDL) && !defined(_XBOX)
|
#if defined(_WIN32) && !defined(USE_SDL) && !defined(_XBOX) && !defined(DEDICATED)
|
||||||
int key = pKey[0];
|
int key = pKey[0];
|
||||||
if ( pKey[0] == '\\' && pKey[1] == 'r' )
|
if ( pKey[0] == '\\' && pKey[1] == 'r' )
|
||||||
{
|
{
|
||||||
|
@ -212,15 +212,17 @@ def build(bld):
|
|||||||
]
|
]
|
||||||
if bld.env.DEST_OS != "darwin":
|
if bld.env.DEST_OS != "darwin":
|
||||||
source += ['audio/snd_dev_sdl.cpp']
|
source += ['audio/snd_dev_sdl.cpp']
|
||||||
|
|
||||||
|
source_win = [
|
||||||
|
'audio/snd_dev_direct.cpp',
|
||||||
|
'audio/snd_dev_wave.cpp',
|
||||||
|
'audio/voice_mixer_controls.cpp',
|
||||||
|
'audio/voice_record_dsound.cpp'
|
||||||
|
]
|
||||||
|
|
||||||
if bld.env.DEST_OS == 'win32':
|
if bld.env.DEST_OS == 'win32':
|
||||||
source += [
|
source += [
|
||||||
'../public/tier0/memoverride.cpp',
|
'../public/tier0/memoverride.cpp',
|
||||||
'audio/snd_dev_direct.cpp',
|
|
||||||
'audio/snd_dev_wave.cpp',
|
|
||||||
'audio/voice_mixer_controls.cpp',
|
|
||||||
'audio/voice_record_dsound.cpp',
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
source += [
|
source += [
|
||||||
@ -231,6 +233,8 @@ def build(bld):
|
|||||||
if bld.env.DEDICATED:
|
if bld.env.DEDICATED:
|
||||||
source += ['cl_null.cpp']
|
source += ['cl_null.cpp']
|
||||||
else:
|
else:
|
||||||
|
source += source_win if bld.env.DEST_OS == 'win32' else []
|
||||||
|
|
||||||
source += [
|
source += [
|
||||||
'client_pch.cpp',
|
'client_pch.cpp',
|
||||||
'cl_rcon.cpp',
|
'cl_rcon.cpp',
|
||||||
|
Loading…
Reference in New Issue
Block a user