mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Rename RPak header magic constant to 'RPAK_MAGIC'
A more descriptive name.
This commit is contained in:
parent
e9fac084fe
commit
cd40081a20
@ -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] =
|
||||||
{
|
{
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user