X-Git-Url: https://sfsrealm.hopto.org/projects/?a=blobdiff_plain;f=SFmpqapi.h;h=4facc423a883944e9facf62fc7845937223838fc;hb=259ebaeb9ff628fe0086c2cf93daadbc03b9391f;hp=f9ce2db767bd600ab632885d33642936023b66a1;hpb=a36705ea24b6ce9c6df1e070176014e9fb2394ca;p=SFmpqapi.git diff --git a/SFmpqapi.h b/SFmpqapi.h index f9ce2db..4facc42 100644 --- a/SFmpqapi.h +++ b/SFmpqapi.h @@ -1,6 +1,6 @@ /* - ShadowFlare MPQ API Library. (c) ShadowFlare Software 2002-2009 + ShadowFlare MPQ API Library. (c) ShadowFlare Software 2002-2010 License information for this code is in license.txt and included in this file at the end of this comment. @@ -129,7 +129,7 @@ License information: - Copyright (c) 2002-2009, ShadowFlare + Copyright (c) 2002-2010, ShadowFlare All rights reserved. Redistribution and use in source and binary forms, with or without @@ -230,6 +230,7 @@ long SFMPQAPI __inline SFMpqCompareVersion(); // MpqAddFileToArchive flags #define MAFA_EXISTS 0x80000000 //This flag will be added if not present #define MAFA_UNKNOWN40000000 0x40000000 //Unknown flag +#define MAFA_SINGLEBLOCK 0x01000000 //File is stored as a single unit rather than being split by the block size #define MAFA_MODCRYPTKEY 0x00020000 //Used with MAFA_ENCRYPT. Uses an encryption key based on file position and size #define MAFA_ENCRYPT 0x00010000 //Encrypts the file. The file is still accessible when using this, so the use of this has depreciated #define MAFA_COMPRESS 0x00000200 //File is to be compressed when added. This is used for most of the compression methods @@ -396,6 +397,7 @@ BOOL SFMPQAPI WINAPI MpqAddWaveFromBuffer(MPQHANDLE hMPQ, LPVOID lpBuffer, BOOL SFMPQAPI WINAPI MpqRenameAndSetFileLocale(MPQHANDLE hMPQ, LPCSTR lpcOldFileName, LPCSTR lpcNewFileName, LCID nOldLocale, LCID nNewLocale); BOOL SFMPQAPI WINAPI MpqDeleteFileWithLocale(MPQHANDLE hMPQ, LPCSTR lpFileName, LCID nLocale); BOOL SFMPQAPI WINAPI MpqSetFileLocale(MPQHANDLE hMPQ, LPCSTR lpFileName, LCID nOldLocale, LCID nNewLocale); +BOOL SFMPQAPI WINAPI MpqCreateArchiveVersion(WORD wVersion); // These functions do nothing. They are only provided for // compatibility with MPQ extractors that use storm.