mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-10 10:49:35 +00:00
1
This commit is contained in:
@@ -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 */
|
||||
Reference in New Issue
Block a user