diff --git a/src/Components/Modules/ZoneBuilder.cpp b/src/Components/Modules/ZoneBuilder.cpp index dd2f5fc6..4386ff2e 100644 --- a/src/Components/Modules/ZoneBuilder.cpp +++ b/src/Components/Modules/ZoneBuilder.cpp @@ -407,6 +407,8 @@ namespace Components } #endif + Utils::IO::WriteFile("uncompressed", zoneBuffer); + zoneBuffer = Utils::Compression::ZLib::Compress(zoneBuffer); outBuffer.append(zoneBuffer); @@ -1101,12 +1103,29 @@ namespace Components if (!ZoneBuilder::TraceZone.empty() && ZoneBuilder::TraceZone == FastFiles::Current()) { ZoneBuilder::TraceAssets.push_back({ type, name }); + OutputDebugStringA((name + "\n").data()); } }); Command::Add("verifyzone", [](Command::Params* params) { if (params->length() < 2) return; + + Utils::Hook(0x4AE9C2, [] { + Game::WeaponCompleteDef** varPtr = (Game::WeaponCompleteDef**)0x112A9F4; + Game::WeaponCompleteDef* var = *varPtr; + OutputDebugStringA(""); + Utils::Hook::Call(0x4D1D60)(); // DB_PopStreamPos + }, HOOK_JUMP).install()->quick(); + + + Utils::Hook(0x4AE9B4, [] { + Game::WeaponCompleteDef** varPtr = (Game::WeaponCompleteDef**)0x112A9F4; + Game::WeaponCompleteDef* var = *varPtr; + OutputDebugStringA(""); + Utils::Hook::Call(0x4D1D60)(); // DB_PopStreamPos + }, HOOK_JUMP).install()->quick(); + std::string zone = params->get(1);