From 308160369e7fe08669fd7cfe2c3cb65fca48f4f0 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Sun, 13 Feb 2022 17:13:54 +0100 Subject: [PATCH] RTech::UnloadAsset comment and rpak header rename. --- r5dev/rtech/rtech_game.cpp | 2 +- r5dev/rtech/rtech_utils.h | 2 +- r5dev/tier0/completion.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/r5dev/rtech/rtech_game.cpp b/r5dev/rtech/rtech_game.cpp index c307c798..793521e4 100644 --- a/r5dev/rtech/rtech_game.cpp +++ b/r5dev/rtech/rtech_game.cpp @@ -6,7 +6,7 @@ //----------------------------------------------------------------------------- // Purpose: unloads asset files from the memory pool //----------------------------------------------------------------------------- -void HRTech_UnloadAsset(std::int64_t a1, std::int64_t a2) +void HRTech_UnloadAsset(std::int64_t a1, std::int64_t a2) // This ain't related to RTech, its a CSTDMem function. { #if defined (GAMEDLL_S0) || defined (GAMEDLL_S1) std::int64_t pAsset = a1; diff --git a/r5dev/rtech/rtech_utils.h b/r5dev/rtech/rtech_utils.h index 93a3fc3c..b24216a4 100644 --- a/r5dev/rtech/rtech_utils.h +++ b/r5dev/rtech/rtech_utils.h @@ -50,7 +50,7 @@ namespace #pragma warning( pop ) } -struct RPakApexHeader_t +struct RPakHeader_t { std::uint32_t m_nMagic; // 'RPak' std::uint16_t m_nVersion; // R2 = '7' R5 = '8' diff --git a/r5dev/tier0/completion.cpp b/r5dev/tier0/completion.cpp index 055edd7d..757de7a7 100644 --- a/r5dev/tier0/completion.cpp +++ b/r5dev/tier0/completion.cpp @@ -435,7 +435,7 @@ void _RTech_Decompress_f_CompletionFunc(CCommand* cmd) ipak.seekg(0, std::fstream::beg); ipak.read((char*)upak.data(), upak.size()); - RPakApexHeader_t* rheader = (RPakApexHeader_t*)upak.data(); + RPakHeader_t* rheader = (RPakHeader_t*)upak.data(); uint16_t flags = (rheader->m_nFlags[0] << 8) | rheader->m_nFlags[1]; DevMsg(eDLL_T::RTECH, "______________________________________________________________\n");