Mercurial > might-and-magic-trilogy
comparison LOD.cpp @ 108:d543bd89a31e
6.11.12
author | Ritor1 |
---|---|
date | Tue, 06 Nov 2012 10:06:45 +0600 |
parents | a84fb3752681 |
children | 430786d916d6 |
comparison
equal
deleted
inserted
replaced
107:ccc0cf95706a | 108:d543bd89a31e |
---|---|
1516 strcpy(OldFilename, "lod.tmp"); | 1516 strcpy(OldFilename, "lod.tmp"); |
1517 v12 = fopen(OldFilename, "wb+"); | 1517 v12 = fopen(OldFilename, "wb+"); |
1518 v13 = v12; | 1518 v13 = v12; |
1519 if ( v12 ) | 1519 if ( v12 ) |
1520 { | 1520 { |
1521 fwrite(&v1->header, 0x100u, 1u, v12); | 1521 fwrite(&v1->header, 0x100u, 1, v12); |
1522 | 1522 |
1523 LOD::Directory v0; // [sp+20Ch] [bp-28h]@11 | 1523 LOD::Directory v0; // [sp+20Ch] [bp-28h]@11 |
1524 //LOD::Directory::LOD::Directory(&v0); | 1524 //LOD::Directory::LOD::Directory(&v0); |
1525 | 1525 |
1526 strcpy((char *)&v0, "chapter"); | 1526 strcpy((char *)&v0, "chapter"); |
1528 v0.dword_000018 = 0; | 1528 v0.dword_000018 = 0; |
1529 v0.uOfsetFromSubindicesStart = v15; | 1529 v0.uOfsetFromSubindicesStart = v15; |
1530 v0.word_00001E = 0; | 1530 v0.word_00001E = 0; |
1531 v0.uDataSize = v21; | 1531 v0.uDataSize = v21; |
1532 v0.uNumSubIndices = LOWORD(v1->uNumSubIndices); | 1532 v0.uNumSubIndices = LOWORD(v1->uNumSubIndices); |
1533 fwrite(&v0, 0x20u, 1u, v13); | 1533 fwrite(&v0, 0x20, 1, v13); |
1534 fwrite(v1->pSubIndices, 0x20u, v1->uNumSubIndices, v13); | 1534 fwrite(v1->pSubIndices, 0x20u, v1->uNumSubIndices, v13); |
1535 v16 = v1->pOutputFileHandle; | 1535 v16 = v1->pOutputFileHandle; |
1536 v22 = v2; | 1536 v22 = v2; |
1537 fseek(v16, 0, 0); | 1537 fseek(v16, 0, 0); |
1538 if ( v2 > 0 ) | 1538 if ( v2 > 0 ) |
2041 | 2041 |
2042 //----- (004617B6) -------------------------------------------------------- | 2042 //----- (004617B6) -------------------------------------------------------- |
2043 void LOD::FileHeader::Reset() | 2043 void LOD::FileHeader::Reset() |
2044 { | 2044 { |
2045 this->pSignature[0] = 0; | 2045 this->pSignature[0] = 0; |
2046 this->array_000004[0] = 0; | 2046 this->LodVersion[0] = 0; |
2047 this->array_000054[0] = 0; | 2047 this->LodDescription[0] = 0; |
2048 this->dword_0000A4 = 0; | 2048 this->dword_0000A4 = 0; |
2049 this->dword_0000A8 = 0; | 2049 this->dword_0000A8 = 0; |
2050 this->uNumIndices = 0; | 2050 this->uNumIndices = 0; |
2051 } | 2051 } |
2052 | 2052 |