Mercurial > might-and-magic-trilogy
diff LOD.cpp @ 110:430786d916d6
6.11.12 SaveLoad
author | Ritor1 |
---|---|
date | Tue, 06 Nov 2012 17:30:24 +0600 |
parents | d543bd89a31e |
children | 8feb2dfd2f89 |
line wrap: on
line diff
--- a/LOD.cpp Tue Nov 06 10:07:35 2012 +0600 +++ b/LOD.cpp Tue Nov 06 17:30:24 2012 +0600 @@ -1019,8 +1019,8 @@ v4->pFile = v6; if ( !v6 ) return 3; - fwrite(pHeader, 0x100u, 1u, v6); - fwrite(pDir, 0x20u, 1u, v4->pFile); + fwrite(pHeader, 0x100, 1, v6); + fwrite(pDir, 0x20, 1, v4->pFile); fclose(v4->pFile); v4->pFile = 0; return 0; @@ -1518,7 +1518,7 @@ v13 = v12; if ( v12 ) { - fwrite(&v1->header, 0x100u, 1, v12); + fwrite(&v1->header, 0x100, 1, v12); LOD::Directory v0; // [sp+20Ch] [bp-28h]@11 //LOD::Directory::LOD::Directory(&v0); @@ -1531,7 +1531,7 @@ v0.uDataSize = v21; v0.uNumSubIndices = LOWORD(v1->uNumSubIndices); fwrite(&v0, 0x20, 1, v13); - fwrite(v1->pSubIndices, 0x20u, v1->uNumSubIndices, v13); + fwrite(v1->pSubIndices, 0x20, v1->uNumSubIndices, v13); v16 = v1->pOutputFileHandle; v22 = v2; fseek(v16, 0, 0); @@ -1542,8 +1542,8 @@ v17 = v1->uIOBufferSize; if ( v22 <= (signed int)v17 ) v17 = v22; - fread(v1->pIOBuffer, 1u, v17, v1->pOutputFileHandle); - fwrite(v1->pIOBuffer, 1u, v17, v13); + fread(v1->pIOBuffer, 1, v17, v1->pOutputFileHandle); + fwrite(v1->pIOBuffer, 1, v17, v13); v22 -= v17; } while ( v22 > 0 );