-
Notifications
You must be signed in to change notification settings - Fork 0
/
QWTables.cc
76 lines (68 loc) · 2.49 KB
/
QWTables.cc
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
GNU General Public License version 3 notice
Copyright (C) 2012 Mihawk <[email protected]>. All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see < http://www.gnu.org/licenses/ >.
*/
#include "QWTables.h"
#include <QString>
const QWTables::OriginalChecksumTable QWTables::ourOriginalChecksumTable[] = {
{ "maps/start.bsp", 493454459ll },
{ "maps/e1m1.bsp", 2902972546ll },
{ "maps/e1m2.bsp", 1729102119ll },
{ "maps/e1m3.bsp", 893792842ll },
{ "maps/e1m4.bsp", 3990488693ll },
{ "maps/e1m5.bsp", 2821463178ll },
{ "maps/e1m6.bsp", 738207971ll },
{ "maps/e1m7.bsp", 2547448602ll },
{ "maps/e1m8.bsp", 79095617ll },
{ "maps/e2m1.bsp", 3707072562ll },
{ "maps/e2m2.bsp", 2945850701ll },
{ "maps/e2m3.bsp", 4237894993ll },
{ "maps/e2m4.bsp", 3273038793ll },
{ "maps/e2m5.bsp", 3204615999ll },
{ "maps/e2m6.bsp", 2443393921ll },
{ "maps/e2m7.bsp", 2051006488ll },
{ "maps/e3m1.bsp", 2427587873ll },
{ "maps/e3m2.bsp", 2624353592ll },
{ "maps/e3m3.bsp", 3285212440ll },
{ "maps/e3m4.bsp", 2977500344ll },
{ "maps/e3m5.bsp", 2440693297ll },
{ "maps/e3m6.bsp", 767655416ll },
{ "maps/e3m7.bsp", 272220593ll },
{ "maps/e4m1.bsp", 3153093456ll },
{ "maps/e4m2.bsp", 4294495000ll },
{ "maps/e4m3.bsp", 1505685644ll },
{ "maps/e4m4.bsp", 758847551ll },
{ "maps/e4m5.bsp", 1771890676ll},
{ "maps/e4m6.bsp", 102825880ll },
{ "maps/e4m7.bsp", 2649489836ll },
{ "maps/e4m8.bsp", 1018457175ll },
{ "maps/end.bsp", 3151279269ll },
{ "maps/dm1.bsp", 3318209203ll },
{ "maps/dm2.bsp", 1710634548ll },
{ "maps/dm3.bsp", 367136248ll },
{ "maps/dm4.bsp", 2624578751ll },
{ "maps/dm5.bsp", 2955757821ll },
{ "maps/dm6.bsp", 1376311851ll },
{ NULL, 0 }
};
quint32 QWTables::getOriginalMapChecksum(const QString &mapName)
{
for(int i = 0; ; ++i)
{
if(!ourOriginalChecksumTable[i].mapname)
return 0;
if(mapName == QString(ourOriginalChecksumTable[i].mapname))
return ourOriginalChecksumTable[i].checksum;
}
return 0;
}