[ZoneBuilder] Add temporary workaround to load rust's commap

This commit is contained in:
momo5502 2017-03-19 00:31:34 +01:00
parent 3b6c502368
commit f2dcab13e1

View File

@ -763,7 +763,7 @@ namespace Components
Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB Utils::Hook::Set<DWORD>(0x64A029, 0x38400000); // 900 MiB
Utils::Hook::Set<DWORD>(0x64A057, 0x38400000); Utils::Hook::Set<DWORD>(0x64A057, 0x38400000);
AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader /*asset*/, std::string name, bool* /*restrict*/) AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader /*asset*/, std::string name, bool* restrict)
{ {
// This is used to track which assets can be stored as empty assets // This is used to track which assets can be stored as empty assets
if (FastFiles::Current() == "common_mp") if (FastFiles::Current() == "common_mp")
@ -775,6 +775,11 @@ namespace Components
{ {
ZoneBuilder::TraceAssets.push_back({ type, name }); ZoneBuilder::TraceAssets.push_back({ type, name });
} }
if(FastFiles::Current() == "iw4_credits"s && type == Game::XAssetType::ASSET_TYPE_COMWORLD)
{
*restrict = true;
}
}); });
Command::Add("verifyzone", [](Command::Params* params) Command::Add("verifyzone", [](Command::Params* params)