annotate SaveLoad.h @ 1646:bac69d9157b6

Merge
author Nomad
date Tue, 17 Sep 2013 23:10:07 +0200
parents ab6560001f5b
children 147ee4591b76
rev   line source
0
Ritor1
parents:
diff changeset
1 #pragma once
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 382
diff changeset
2 #include<array>
0
Ritor1
parents:
diff changeset
3
382
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
4 #pragma pack(push, 1)
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
5 struct SaveFile_
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
6 {
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
7 char field_0[20];
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
8 char pSaveFileName[260];
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
9 };
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
10 #pragma pack(pop)
0
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 /* 243 */
Ritor1
parents:
diff changeset
13 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
14 struct SavegameList
Ritor1
parents:
diff changeset
15 {
382
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
16 static void Initialize(unsigned int a1);
0
Ritor1
parents:
diff changeset
17
382
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
18 /*inline void Reset()
373
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
19 {
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
20 for (int i = 0; i < 20; ++i)
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
21 field_0[i] = 0;
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
22 for (int i = 0; i < 44; ++i)
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
23 pSavesNames[i][0] = 0;
382
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
24 }*/
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
25 SaveFile_ pFileList[45];
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
26
0
Ritor1
parents:
diff changeset
27 };
Ritor1
parents:
diff changeset
28 #pragma pack(pop)
Ritor1
parents:
diff changeset
29
Ritor1
parents:
diff changeset
30
Ritor1
parents:
diff changeset
31 /* 244 */
Ritor1
parents:
diff changeset
32 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
33 struct SavegameHeader
Ritor1
parents:
diff changeset
34 {
Ritor1
parents:
diff changeset
35 char pName[20];
Ritor1
parents:
diff changeset
36 char pLocationName[20];
Ritor1
parents:
diff changeset
37 unsigned __int64 uWordTime;
Ritor1
parents:
diff changeset
38 char field_30[52];
Ritor1
parents:
diff changeset
39 };
Ritor1
parents:
diff changeset
40 #pragma pack(pop)
Ritor1
parents:
diff changeset
41
Ritor1
parents:
diff changeset
42
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44 extern unsigned int uNumSavegameFiles;
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 382
diff changeset
45 extern std::array<unsigned int, 45> pSavegameUsedSlots;
0
Ritor1
parents:
diff changeset
46 extern struct SavegameList *pSavegameList;
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 382
diff changeset
47 extern std::array<SavegameHeader, 45> pSavegameHeader;