touch: add new commands

This commit is contained in:
nillerusr
2021-11-16 23:46:29 +03:00
parent f7cdca7ad2
commit d2f3cc44db
138 changed files with 46564 additions and 1231 deletions
+1 -1
View File
@@ -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 ] = ' ';
+2 -1
View File
@@ -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--;
}
+2 -2
View File
@@ -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
View File
@@ -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"