[IWeapon] Fix a couple of alignment issues
This commit is contained in:
parent
43456aedbd
commit
8d4fa4c7ac
@ -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,12 +1103,29 @@ 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());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("verifyzone", [](Command::Params* params)
|
Command::Add("verifyzone", [](Command::Params* params)
|
||||||
{
|
{
|
||||||
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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user