+ Support for BOBA map protector

This commit is contained in:
Ladislav Zezula
2014-01-13 15:33:55 +01:00
parent 699180bf90
commit 48dbf357a3
5 changed files with 47 additions and 13 deletions

View File

@@ -328,6 +328,10 @@ int SAttrLoadAttributes(TMPQArchive * ha)
// File table must be initialized
assert(ha->pFileTable != NULL);
// Don't load the attributes file from malformer Warcraft III maps
if(ha->dwFlags & MPQ_FLAG_MALFORMED)
return ERROR_FILE_CORRUPT;
// Attempt to open the "(attributes)" file.
// If it's not there, then the archive doesn't support attributes
if(SFileOpenFileEx((HANDLE)ha, ATTRIBUTES_NAME, SFILE_OPEN_ANY_LOCALE, &hFile))