initial
This commit is contained in:
54
materialsystem/shaderapidx9/winutils.cpp
Normal file
54
materialsystem/shaderapidx9/winutils.cpp
Normal file
@@ -0,0 +1,54 @@
|
||||
//======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
|
||||
Reference in New Issue
Block a user