Quantcast
WoWInterface - View Single Post - Extract "wow-update-12759.mpq"... meh!
View Single Post
08-20-10, 12:55 PM   #65
Ladik
A Fallenroot Satyr
 
Ladik's Avatar
Join Date: Aug 2010
Posts: 23
Originally Posted by Borlox View Post
Yep.
As far as I understand the code all archives are opened at the beginning. To open a file the code goes through all of them and tries to open the file, storing the content and returning if successful.
I'll change it so when an MPQ is open for read only, it can be open multiple times.
Edit: it should be possible - MPQs are open with FILE_SHARE_READ, and GENERIC_READ if MPQ_OPEN_READ_ONLY is specified in SFileOpenArchive.
__________________
Ladik's MPQ Editor

Last edited by Ladik : 08-20-10 at 12:59 PM.