Mercurial > mm7
annotate SaveLoad.h @ 2305:a5e8eecac226
Merge
author | Grumpy7 |
---|---|
date | Sun, 16 Mar 2014 21:04:49 +0100 |
parents | 147ee4591b76 |
children | 5d263539bbec |
rev | line source |
---|---|
0 | 1 #pragma once |
1206
ab6560001f5b
arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents:
382
diff
changeset
|
2 #include<array> |
0 | 3 |
382 | 4 #pragma pack(push, 1) |
5 struct SaveFile_ | |
6 { | |
7 char field_0[20]; | |
8 char pSaveFileName[260]; | |
9 }; | |
10 #pragma pack(pop) | |
0 | 11 |
12 /* 243 */ | |
13 #pragma pack(push, 1) | |
14 struct SavegameList | |
15 { | |
382 | 16 static void Initialize(unsigned int a1); |
2180 | 17 SavegameList() {Reset();} |
0 | 18 |
2180 | 19 inline void Reset() |
373 | 20 { |
2180 | 21 for ( int j = 0; j < 45; j++ ) |
22 { | |
23 for (int i = 0; i < 20; ++i) | |
24 this->pFileList[j].field_0[i] = 0; | |
25 for (int i = 0; i < 260; ++i) | |
26 this->pFileList[j].pSaveFileName[i] = 0; | |
27 } | |
28 } | |
382 | 29 SaveFile_ pFileList[45]; |
30 | |
0 | 31 }; |
32 #pragma pack(pop) | |
33 | |
34 | |
35 /* 244 */ | |
36 #pragma pack(push, 1) | |
37 struct SavegameHeader | |
38 { | |
39 char pName[20]; | |
40 char pLocationName[20]; | |
41 unsigned __int64 uWordTime; | |
42 char field_30[52]; | |
43 }; | |
44 #pragma pack(pop) | |
45 | |
46 | |
47 | |
48 extern unsigned int uNumSavegameFiles; | |
1206
ab6560001f5b
arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents:
382
diff
changeset
|
49 extern std::array<unsigned int, 45> pSavegameUsedSlots; |
0 | 50 extern struct SavegameList *pSavegameList; |
1206
ab6560001f5b
arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents:
382
diff
changeset
|
51 extern std::array<SavegameHeader, 45> pSavegameHeader; |