Rename RPak header magic constant to 'RPAK_MAGIC'

A more descriptive name.
This commit is contained in:
Kawe Mazidjatari 2023-04-02 01:26:38 +02:00
parent e9fac084fe
commit cd40081a20
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
#define PAK_MAX_TYPES 64 #define PAK_MAX_TYPES 64
#define PAK_PARAM_SIZE 0xB0 #define PAK_PARAM_SIZE 0xB0
#define RPAKHEADER (('k'<<24)+('a'<<16)+('P'<<8)+'R') #define RPAK_MAGIC (('k'<<24)+('a'<<16)+('P'<<8)+'R')
static const inline unsigned char /*unk_141313180*/ s_PakFileCompressionLUT[0x720] = static const inline unsigned char /*unk_141313180*/ s_PakFileCompressionLUT[0x720] =
{ {

View File

@ -495,7 +495,7 @@ void RTech_Decompress_f(const CCommand& args)
DevMsg(eDLL_T::RTECH, " | |-- Size comp: '%llu'\n", pHeader->m_nSizeDisk); DevMsg(eDLL_T::RTECH, " | |-- Size comp: '%llu'\n", pHeader->m_nSizeDisk);
DevMsg(eDLL_T::RTECH, " | |-- Size decp: '%llu'\n", pHeader->m_nSizeMemory); DevMsg(eDLL_T::RTECH, " | |-- Size decp: '%llu'\n", pHeader->m_nSizeMemory);
if (pHeader->m_nMagic != RPAKHEADER) if (pHeader->m_nMagic != RPAK_MAGIC)
{ {
Error(eDLL_T::RTECH, NO_ERROR, "%s - pak file '%s' has invalid magic!\n", __FUNCTION__, svPakNameIn.c_str()); Error(eDLL_T::RTECH, NO_ERROR, "%s - pak file '%s' has invalid magic!\n", __FUNCTION__, svPakNameIn.c_str());
MemAllocSingleton()->Free(pPakBuf); MemAllocSingleton()->Free(pPakBuf);