annotate SaveLoad.h @ 2343:5d263539bbec

Moving functions from unsorted_subs.h pt5
author Grumpy7
date Sun, 06 Apr 2014 21:12:24 +0200
parents 147ee4591b76
children
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);
2180
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
17 SavegameList() {Reset();}
0
Ritor1
parents:
diff changeset
18
2180
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
19 inline void Reset()
373
edd2d8b7e3c4 Interface reloading fix & party alignment enum
Nomad
parents: 0
diff changeset
20 {
2180
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
21 for ( int j = 0; j < 45; j++ )
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
22 {
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
23 for (int i = 0; i < 20; ++i)
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
24 this->pFileList[j].field_0[i] = 0;
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
25 for (int i = 0; i < 260; ++i)
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
26 this->pFileList[j].pSaveFileName[i] = 0;
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
27 }
147ee4591b76 pSavegameList->Reset()
Ritor1
parents: 1206
diff changeset
28 }
382
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
29 SaveFile_ pFileList[45];
a4a5996fea5b Fixed savelist problem
Gloval
parents: 373
diff changeset
30
0
Ritor1
parents:
diff changeset
31 };
Ritor1
parents:
diff changeset
32 #pragma pack(pop)
Ritor1
parents:
diff changeset
33
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35 /* 244 */
Ritor1
parents:
diff changeset
36 #pragma pack(push, 1)
Ritor1
parents:
diff changeset
37 struct SavegameHeader
Ritor1
parents:
diff changeset
38 {
Ritor1
parents:
diff changeset
39 char pName[20];
Ritor1
parents:
diff changeset
40 char pLocationName[20];
Ritor1
parents:
diff changeset
41 unsigned __int64 uWordTime;
Ritor1
parents:
diff changeset
42 char field_30[52];
Ritor1
parents:
diff changeset
43 };
Ritor1
parents:
diff changeset
44 #pragma pack(pop)
Ritor1
parents:
diff changeset
45
Ritor1
parents:
diff changeset
46
2343
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 2180
diff changeset
47 void __fastcall LoadGame(unsigned int uSlot); // idb
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 2180
diff changeset
48 void SaveGame(bool IsAutoSAve, bool NotSaveWorld);
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 2180
diff changeset
49 void __fastcall DoSavegame(unsigned int uSlot); // idb
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 2180
diff changeset
50 bool Initialize_GamesLOD_NewLOD();
5d263539bbec Moving functions from unsorted_subs.h pt5
Grumpy7
parents: 2180
diff changeset
51 void SaveNewGame();
0
Ritor1
parents:
diff changeset
52
Ritor1
parents:
diff changeset
53 extern unsigned int uNumSavegameFiles;
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 382
diff changeset
54 extern std::array<unsigned int, 45> pSavegameUsedSlots;
0
Ritor1
parents:
diff changeset
55 extern struct SavegameList *pSavegameList;
1206
ab6560001f5b arrays to std::arrays phase 2 - some more arrays converted
Grumpy7
parents: 382
diff changeset
56 extern std::array<SavegameHeader, 45> pSavegameHeader;