diff options
author | Ladislav <Zezula> | 2013-11-18 12:35:21 +0100 |
---|---|---|
committer | Ladislav <Zezula> | 2013-11-18 12:35:21 +0100 |
commit | 870acd582701bc67c29b48319972303e5ceb706d (patch) | |
tree | 01f5150ff893c17251db52b1163c8a4c0cc596d2 /src/SFileOpenArchive.cpp | |
parent | 1f2305cc35734a8f3198be4ce6145de1710308b5 (diff) |
+ Adding files to MPQ no longer removes (listfile) and (attributes) when not enough space in the hash tablev8.99
+ Fixes in deletion of files from MPQs v 4.0
Diffstat (limited to 'src/SFileOpenArchive.cpp')
-rw-r--r-- | src/SFileOpenArchive.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SFileOpenArchive.cpp b/src/SFileOpenArchive.cpp index a058136..bf8d19e 100644 --- a/src/SFileOpenArchive.cpp +++ b/src/SFileOpenArchive.cpp @@ -443,7 +443,7 @@ bool WINAPI SFileFlushArchive(HANDLE hMpq) } // If the (listfile) has been invalidated, save it - if(ha->dwFlags & MPQ_FLAG_INV_LISTFILE) + if(ha->dwFlags & MPQ_FLAG_LISTFILE_INVALID) { nError = SListFileSaveToMpq(ha); if(nError != ERROR_SUCCESS) @@ -451,7 +451,7 @@ bool WINAPI SFileFlushArchive(HANDLE hMpq) } // If the (attributes) has been invalidated, save it - if(ha->dwFlags & MPQ_FLAG_INV_ATTRIBUTES) + if(ha->dwFlags & MPQ_FLAG_ATTRIBUTES_INVALID) { nError = SAttrFileSaveToMpq(ha); if(nError != ERROR_SUCCESS) |