[IWeapon] Fix a couple of alignment issues

This commit is contained in:
TheApadayo 2019-01-15 21:25:40 -05:00
parent 43456aedbd
commit 8d4fa4c7ac

View File

@ -407,6 +407,8 @@ namespace Components
} }
#endif #endif
Utils::IO::WriteFile("uncompressed", zoneBuffer);
zoneBuffer = Utils::Compression::ZLib::Compress(zoneBuffer); zoneBuffer = Utils::Compression::ZLib::Compress(zoneBuffer);
outBuffer.append(zoneBuffer); outBuffer.append(zoneBuffer);
@ -1101,6 +1103,7 @@ namespace Components
if (!ZoneBuilder::TraceZone.empty() && ZoneBuilder::TraceZone == FastFiles::Current()) if (!ZoneBuilder::TraceZone.empty() && ZoneBuilder::TraceZone == FastFiles::Current())
{ {
ZoneBuilder::TraceAssets.push_back({ type, name }); ZoneBuilder::TraceAssets.push_back({ type, name });
OutputDebugStringA((name + "\n").data());
} }
}); });
@ -1108,6 +1111,22 @@ namespace Components
{ {
if (params->length() < 2) return; if (params->length() < 2) return;
Utils::Hook(0x4AE9C2, [] {
Game::WeaponCompleteDef** varPtr = (Game::WeaponCompleteDef**)0x112A9F4;
Game::WeaponCompleteDef* var = *varPtr;
OutputDebugStringA("");
Utils::Hook::Call<void()>(0x4D1D60)(); // DB_PopStreamPos
}, HOOK_JUMP).install()->quick();
Utils::Hook(0x4AE9B4, [] {
Game::WeaponCompleteDef** varPtr = (Game::WeaponCompleteDef**)0x112A9F4;
Game::WeaponCompleteDef* var = *varPtr;
OutputDebugStringA("");
Utils::Hook::Call<void()>(0x4D1D60)(); // DB_PopStreamPos
}, HOOK_JUMP).install()->quick();
std::string zone = params->get(1); std::string zone = params->get(1);
ZoneBuilder::BeginAssetTrace(zone); ZoneBuilder::BeginAssetTrace(zone);