Mercurial > mm7
comparison LOD.h @ 837:bebc19f3d2af
Save/load work with some problems
author | Gloval |
---|---|
date | Thu, 28 Mar 2013 00:37:27 +0400 |
parents | f5156b8c61ad |
children | 0d96349d8c87 |
comparison
equal
deleted
inserted
replaced
821:5e3f4bf3b8e6 | 837:bebc19f3d2af |
---|---|
86 struct FileHeader header; | 86 struct FileHeader header; |
87 struct Directory *pRoot; | 87 struct Directory *pRoot; |
88 char pContainerName[16]; | 88 char pContainerName[16]; |
89 unsigned int uCurrentIndexDir; | 89 unsigned int uCurrentIndexDir; |
90 unsigned int uLODDataSize; | 90 unsigned int uLODDataSize; |
91 unsigned int uNumSubIndices; | 91 unsigned int uNumSubDirs; |
92 struct Directory *pSubIndices; | 92 struct Directory *pSubIndices; |
93 unsigned int uOffsetToSubIndex; | 93 unsigned int uOffsetToSubIndex; |
94 FILE *pOutputFileHandle; | 94 FILE *pOutputFileHandle; |
95 }; | 95 }; |
96 #pragma pack(pop) | 96 #pragma pack(pop) |
107 { | 107 { |
108 bool LoadFile(const char *pFilename, bool bWriting); | 108 bool LoadFile(const char *pFilename, bool bWriting); |
109 unsigned int Write(const LOD::Directory *pDir, const void *pDirData, int a4); | 109 unsigned int Write(const LOD::Directory *pDir, const void *pDirData, int a4); |
110 void CloseWriteFile(); | 110 void CloseWriteFile(); |
111 int CreateTempFile(); | 111 int CreateTempFile(); |
112 int Save(); | 112 int FixDirectoryOffsets(); |
113 bool _4621A7(); | 113 bool _4621A7(); |
114 int _461492(LOD::FileHeader *pHeader, LOD::Directory *pDir, const char *Source); | 114 int CreateNewLod(LOD::FileHeader *pHeader, LOD::Directory *pDir, const char *Source); |
115 | 115 |
116 /*FILE *pFile; | 116 /*FILE *pFile; |
117 char pLODName[256]; | 117 char pLODName[256]; |
118 unsigned int isFileOpened; | 118 unsigned int isFileOpened; |
119 unsigned __int8 *pIOBuffer; | 119 unsigned __int8 *pIOBuffer; |