Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

54 lines
936 B

//======Copyright 1996-2006, Valve Corporation, All rights reserved. ======//
//
// winutils.cpp
//
//===========================================================================//
#include "winutils.h"
#ifndef _WIN32
#include "appframework/ilaunchermgr.h"
void GlobalMemoryStatus( MEMORYSTATUS *pOut )
{
//cheese: return 2GB physical
pOut->dwTotalPhys = (1<<31);
}
void Sleep( unsigned int ms )
{
DebuggerBreak();
ThreadSleep( ms );
}
bool IsIconic( VD3DHWND hWnd )
{
// FIXME for now just act non-minimized all the time
//DebuggerBreak();
return false;
}
BOOL ClientToScreen( VD3DHWND hWnd, LPPOINT pPoint )
{
DebuggerBreak();
return true;
}
void* GetCurrentThread()
{
DebuggerBreak();
return 0;
}
void SetThreadAffinityMask( void *hThread, int nMask )
{
DebuggerBreak();
}
bool GUID::operator==( const struct _GUID &other ) const
{
DebuggerBreak();
return memcmp( this, &other, sizeof( GUID ) ) == 0;
}
#endif