//
To open the new patch.mpq
//
Error if mpq file is bigger than 2G
fseek();
//
or
lseek();
//
or
::SetFilePointer(hFile, dwHashTablePos,
0
, FILE_BEGIN);
//
Correct
_lseeki64();
//
or
LARGE_INTEGER li;
li.QuadPart
=
dwHashTablePos;
::SetFilePointer(hFile, li.LowPart,
&
li.HighPart, FILE_BEGIN);
So change the every fseek/SetFilePointer in stormlib or libmpq in WowModelViewer source code and recompile, we can open the new patch.mpq in WoW BC which is 2.7G. The mpq format is NOT changed, I am a fool to decode a new format from the begining.
=============================================
http://linghuye.googlepages.com/MyWarCraftStudio_0.9.7z
or
http://www.cnitblog.com/Files/linghuye/MyWarCraftStudio_0.9.rar
1.Fix the bug when reading Burning Crusade's patch.mpq
2.Fix bugs when displaying model on ATI graphic cards
3.M2Import.dli is a 3D Max import plugin for importing m2 file, but only meshs now, no texture, no skeleton animation. I am learning how to write a 3D Max import plugin, this is a byproduct.