summaryrefslogtreecommitdiff
path: root/engine/LoadScreenUpdate.h
blob: f6231e37279337936f2caf67609f43574281bf9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 */