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

  1. //======Copyright 1996-2006, Valve Corporation, All rights reserved. ======//
  2. //
  3. // winutils.cpp
  4. //
  5. //===========================================================================//
  6. #include "winutils.h"
  7. #ifndef _WIN32
  8. #include "appframework/ilaunchermgr.h"
  9. void GlobalMemoryStatus( MEMORYSTATUS *pOut )
  10. {
  11. //cheese: return 2GB physical
  12. pOut->dwTotalPhys = (1<<31);
  13. }
  14. void Sleep( unsigned int ms )
  15. {
  16. DebuggerBreak();
  17. ThreadSleep( ms );
  18. }
  19. bool IsIconic( VD3DHWND hWnd )
  20. {
  21. // FIXME for now just act non-minimized all the time
  22. //DebuggerBreak();
  23. return false;
  24. }
  25. BOOL ClientToScreen( VD3DHWND hWnd, LPPOINT pPoint )
  26. {
  27. DebuggerBreak();
  28. return true;
  29. }
  30. void* GetCurrentThread()
  31. {
  32. DebuggerBreak();
  33. return 0;
  34. }
  35. void SetThreadAffinityMask( void *hThread, int nMask )
  36. {
  37. DebuggerBreak();
  38. }
  39. bool GUID::operator==( const struct _GUID &other ) const
  40. {
  41. DebuggerBreak();
  42. return memcmp( this, &other, sizeof( GUID ) ) == 0;
  43. }
  44. #endif