Mercurial > mm7
annotate Engine/SaveLoad.h @ 2574:dd36326a9994
More texture refactoring
GetLeather -> DrawTextureCustomHeight
author | a.parshin |
---|---|
date | Mon, 07 Mar 2016 03:48:40 +0200 |
parents | d87bfbd3bb3b |
children |
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 | |
2574 | 47 void LoadThumbnailLloydTexture(unsigned int uSlot, unsigned int uPlayer); |
48 void LoadGame(unsigned int uSlot); | |
2499 | 49 void SaveGame(bool IsAutoSAve, bool NotSaveWorld); |
2574 | 50 void DoSavegame(unsigned int uSlot); |
2499 | 51 bool Initialize_GamesLOD_NewLOD(); |
52 void SaveNewGame(); | |
53 | |
54 extern unsigned int uNumSavegameFiles; | |
55 extern std::array<unsigned int, 45> pSavegameUsedSlots; | |
2572
d87bfbd3bb3b
Step towards unification of Texture and RGBTexture (class Image)
a.parshin
parents:
2499
diff
changeset
|
56 extern struct SavegameList *pSavegameList; |
2574 | 57 extern std::array<SavegameHeader, 45> pSavegameHeader; |
58 | |
59 extern std::array<struct Image *, 45> pSavegameThumbnails; |