diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /engine/LoadScreenUpdate.h | |
| download | archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.tar.xz archived-source-engine-2018-hl2-src-3bf9df6b2785fa6d951086978a3e66f49427166a.zip | |
Diffstat (limited to 'engine/LoadScreenUpdate.h')
| -rw-r--r-- | engine/LoadScreenUpdate.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/engine/LoadScreenUpdate.h b/engine/LoadScreenUpdate.h new file mode 100644 index 0000000..f6231e3 --- /dev/null +++ b/engine/LoadScreenUpdate.h @@ -0,0 +1,39 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: To accomplish X360 TCR 22, we need to call present ever 66msec +// at least during loading screens. This amazing hack will do it +// by overriding the allocator to tick it every so often. +// +// $NoKeywords: $ +//===========================================================================// + + +#ifndef LOAD_SCREEN_UPDATE_H +#define LOAD_SCREEN_UPDATE_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "materialsystem/imaterialsystem.h" + + +//----------------------------------------------------------------------------- +// Activate, deactivate loader updates +//----------------------------------------------------------------------------- +#ifdef _X360 + +void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode ); +void RefreshScreenIfNecessary(); +void EndLoadingUpdates(); + +#else + +inline void BeginLoadingUpdates( MaterialNonInteractiveMode_t mode ) {} +inline void RefreshScreenIfNecessary() {} +inline void EndLoadingUpdates() {} + +#endif + + +#endif /* LOAD_SCREEN_UPDATE_H */ |