mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
RTech::UnloadAsset comment and rpak header rename.
This commit is contained in:
parent
71dabb52e1
commit
308160369e
@ -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;
|
||||
|
@ -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'
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user