Originally Posted by Ladik
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.
|
Here is a minimal test case.
Executed in Cataclysm\Data it always gives me
Failed to add patch archive for exp3: 32
|
Error code 32 is ERROR_SHARING_VIOLATION "The process cannot access the file because it is being used by another process."
All MPQs are opened with MPQ_OPEN_READ_ONLY.