-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsec_update.h
54 lines (39 loc) · 1.66 KB
/
sec_update.h
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
===========================================================================
Copyright (C) 2010-2013 Ninja and TheKelm of the IceOps-Team
This file is part of CoD4X17a-Server source code.
CoD4X17a-Server source code is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
CoD4X17a-Server source code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
===========================================================================
*/
#ifndef SEC_UPDATE_H
#define SEC_UPDATE_H
//#include "sec_init.h"
#include "q_platform.h"
//#include "version.h"
int Sec_Update( );
typedef struct sec_file_s{
char name[MAX_OSPATH];
char path[MAX_OSPATH];
int size;
char hash[4096];
qboolean skipped;
struct sec_file_s *next;
}sec_file_t;
#define SEC_UPDATE_VERSION "1.0"
#define SEC_UPDATE_INITIALBUFFSIZE 10240
//#undef QUOTE
#define SEC_UPDATE_HOST "cod4update.cod4x.me/clupdate"
#define SEC_UPDATE_USER_AGENT "CoD4X AutoUpdater V. " SEC_UPDATE_VERSION
//#define SEC_UPDATE_BOUNDARY "------------------------------------874ryg7v"
#define SEC_UPDATE_PORT 80
#define SEC_UPDATE_DOWNLOAD(baseurl, qpath) "%s%s", baseurl, qpath
#endif