summaryrefslogtreecommitdiff
path: root/engine/download.h
blob: 069fe890346cd7540f907d5c8dc116bb0e5fcabe (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
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//
// $NoKeywords: $
//
//=============================================================================//
//--------------------------------------------------------------------------------------------------------------
// download.h
// 
// Header file for optional HTTP asset downloading
// Author: Matthew D. Campbell ([email protected]), 2004
//--------------------------------------------------------------------------------------------------------------

#ifndef DOWNLOAD_H
#define DOWNLOAD_H

//--------------------------------------------------------------------------------------------------------------
// Function Prototypes
//--------------------------------------------------------------------------------------------------------------
void	CL_HTTPStop_f(void);
bool	CL_DownloadUpdate(void);
void	CL_QueueDownload( const char *filename );
bool	CL_FileReceived( const char *filename, unsigned int requestID );
bool	CL_FileDenied( const char *filename, unsigned int requestID );
int		CL_GetDownloadQueueSize(void);
int		CL_CanUseHTTPDownload(void);
void	CL_MarkMapAsUsingHTTPDownload(void);
bool	CL_IsGamePathValidAndSafeForDownload( const char *pGamePath );

#endif // DOWNLOAD_H