Mercurial > mm7
comparison Engine/SaveLoad.h @ 2499:68cdef6879a0
engine folder
author | Ritor1 |
---|---|
date | Fri, 19 Sep 2014 02:57:42 +0600 |
parents | |
children | d87bfbd3bb3b |
comparison
equal
deleted
inserted
replaced
2498:92eeeb5200f2 | 2499:68cdef6879a0 |
---|---|
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; | |
55 extern struct SavegameList *pSavegameList; | |
56 extern std::array<SavegameHeader, 45> pSavegameHeader; |