mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-08 01:39:36 +00:00
touch: add new commands
This commit is contained in:
@@ -541,7 +541,7 @@ PLATFORM_INTERFACE const tchar *Plat_GetCommandLine()
|
||||
{
|
||||
Assert ( nCharRead < ARRAYSIZE( g_CmdLine ) );
|
||||
|
||||
for( int i = 0; i < nCharRead; i++ )
|
||||
for( uint i = 0; i < nCharRead; i++ )
|
||||
{
|
||||
if( g_CmdLine[ i ] == '\0' )
|
||||
g_CmdLine[ i ] = ' ';
|
||||
|
||||
@@ -1623,7 +1623,8 @@ void CThreadSpinRWLock::UnlockWrite()
|
||||
#if defined(_X360)
|
||||
// X360TBD: Serious Perf implications, not yet. __sync();
|
||||
#endif
|
||||
ThreadInterlockedExchange64( (int64 *)&m_lockInfo, *((int64 *)&newValue) );
|
||||
int64 val; memcpy( &val, &newValue, sizeof( val ) );
|
||||
ThreadInterlockedExchange64( (int64 *)&m_lockInfo, val );
|
||||
m_nWriters--;
|
||||
}
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ static void VCR_Write(void const *pSrc, int size)
|
||||
template<class T>
|
||||
static void VCR_WriteVal(T &val)
|
||||
{
|
||||
VCR_Write(&val, sizeof(val));
|
||||
VCR_Write((void const*)&val, sizeof(val));
|
||||
}
|
||||
|
||||
|
||||
@@ -127,7 +127,7 @@ void OutputDebugStringFormat( const char *pMsg, ... )
|
||||
if ( g_bTraceRead )
|
||||
{
|
||||
char tempData[4096];
|
||||
int tempLen;
|
||||
uint tempLen;
|
||||
VCR_ReadVal( tempLen );
|
||||
VCR_RuntimeAssert( tempLen <= sizeof( tempData ) );
|
||||
VCR_Read( tempData, tempLen );
|
||||
|
||||
+4
-2
@@ -20,15 +20,17 @@
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable:4073)
|
||||
#pragma init_seg( lib )
|
||||
#endif
|
||||
|
||||
#pragma warning(push, 1)
|
||||
#pragma warning(disable:4786)
|
||||
#pragma warning(disable:4530)
|
||||
#endif
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include "tier0/valve_on.h"
|
||||
#include "tier0/vprof.h"
|
||||
|
||||
Reference in New Issue
Block a user