Team Fortress 2 Source Code as on 22/4/2020
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.

39 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: To accomplish X360 TCR 22, we need to call present ever 66msec
  4. // at least during loading screens. This amazing hack will do it
  5. // by overriding the allocator to tick it every so often.
  6. //
  7. // $NoKeywords: $
  8. //===========================================================================//
  9. #ifndef LOAD_SCREEN_UPDATE_H
  10. #define LOAD_SCREEN_UPDATE_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "materialsystem/imaterialsystem.h"
  15. //-----------------------------------------------------------------------------
  16. // Activate, deactivate loader updates
  17. //-----------------------------------------------------------------------------
  18. #ifdef _X360
  19. void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode );
  20. void RefreshScreenIfNecessary();
  21. void EndLoadingUpdates();
  22. #else
  23. inline void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode ) {}
  24. inline void RefreshScreenIfNecessary() {}
  25. inline void EndLoadingUpdates() {}
  26. #endif
  27. #endif /* LOAD_SCREEN_UPDATE_H */