Mercurial > mm7
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 | 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 | |
2343 | 47 void __fastcall LoadGame(unsigned int uSlot); // idb |
48 void SaveGame(bool IsAutoSAve, bool NotSaveWorld); | |
49 void __fastcall DoSavegame(unsigned int uSlot); // idb | |
50 bool Initialize_GamesLOD_NewLOD(); | |
51 void SaveNewGame(); | |
0 | 52 |
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 | 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; |