RPakLoadedInfo_t backwards compatibility

Padded struct with 48 bytes (extra FF padding in memory) to match the size with earlier builds (<S3)
This commit is contained in:
Kawe Mazidjatari 2022-05-17 01:33:45 +02:00
parent 325b3d15dc
commit 2ef4f087c5
2 changed files with 5 additions and 5 deletions

View File

@ -502,7 +502,6 @@ std::uint8_t __fastcall RTech::DecompressPakFile(RPakDecompState_t* state, std::
//-----------------------------------------------------------------------------
RPakLoadedInfo_t RTech::GetPakLoadedInfo(int nPakId)
{
#ifdef GAMEDLL_S3
for (int i = 0; i < *s_pLoadedPakCount; ++i)
{
RPakLoadedInfo_t info = g_pLoadedPakInfo[i];
@ -514,8 +513,6 @@ RPakLoadedInfo_t RTech::GetPakLoadedInfo(int nPakId)
}
Warning(eDLL_T::RTECH, "%s - Failed getting RPakLoadInfo_t for PakId '%d'\n", __FUNCTION__, nPakId);
#endif // GAMEDLL_S3
return RPakLoadedInfo_t();
}
///////////////////////////////////////////////////////////////////////////////

View File

@ -153,11 +153,14 @@ public:
std::uint32_t m_nUnk2; //0x0010
std::uint32_t m_nAssetCount; //0x0014
char* m_pszFileName; //0x0018
void* m_pUnk1; //0x0020
void* m_pMalloc; //0x0020
std::uint64_t* m_pAssetGuids; //0x0028 size of the array is m_nAssetCount
char pad_0030[128]; //0x0030
#ifndef GAMEDLL_S3
char pad_00B0[48];
#endif // !GAMEDLL_S3
std::uint64_t m_nUnkEnd; //0x00B0
}; //Size: 0x00B8
}; //Size: 0x00B8/0x00E8
/* ==== RTECH =========================================================================================================================================================== */
inline RPakLoadedInfo_t* g_pLoadedPakInfo;