Mercurial > mm7
annotate Engine/SaveLoad.h @ 2572:d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
author | a.parshin |
---|---|
date | Sat, 05 Mar 2016 01:51:54 +0200 |
parents | 68cdef6879a0 |
children | dd36326a9994 |
rev | line source |
---|---|
2499 | 1 #pragma once |
2 #include<array> | |
3 | |
4 #pragma pack(push, 1) | |
5 struct SaveFile_ | |
6 { | |
7 char field_0[20]; | |
8 char pSaveFileName[260]; | |
9 }; | |
10 #pragma pack(pop) | |
11 | |
12 /* 243 */ | |
13 #pragma pack(push, 1) | |
14 struct SavegameList | |
15 { | |
16 static void Initialize(unsigned int a1); | |
17 SavegameList() {Reset();} | |
18 | |
19 inline void Reset() | |
20 { | |
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 } | |
29 SaveFile_ pFileList[45]; | |
30 | |
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 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(); | |
52 | |
53 extern unsigned int uNumSavegameFiles; | |
54 extern std::array<unsigned int, 45> pSavegameUsedSlots; | |
2572
d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents:
2499
diff
changeset
|
55 extern struct SavegameList *pSavegameList; |
2499 | 56 extern std::array<SavegameHeader, 45> pSavegameHeader; |