[AssetHandler]: Removed 'poolUsage' command
This commit is contained in:
parent
328f4af375
commit
eef1583bcf
@ -247,31 +247,6 @@ namespace Components
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
Command::Add("poolUsage", [](Command::Params* params)
|
|
||||||
{
|
|
||||||
if (params->size() < 2)
|
|
||||||
{
|
|
||||||
Game::Com_Printf(0, "poolUsage <poolnumber>: list all the assets in the specified pool\n");
|
|
||||||
|
|
||||||
for (auto i = 0; i < Game::XAssetType::ASSET_TYPE_COUNT; i++)
|
|
||||||
{
|
|
||||||
Game::Com_Printf(0, "%d %s\n", i, Game::g_assetNames[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
const auto type = static_cast<Game::XAssetType>(std::atoi(params->get(1)));
|
|
||||||
|
|
||||||
auto count = 0;
|
|
||||||
FastFiles::EnumAssets(type, [&](Game::XAssetHeader header)
|
|
||||||
{
|
|
||||||
count++;
|
|
||||||
}, true);
|
|
||||||
|
|
||||||
Game::Com_Printf(0, Utils::String::VA("%i %s: %i / %i\n", type, Game::g_assetNames[type], count, Game::g_poolSize[type]));
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
Command::Add("assetCount", [](const Command::Params* params)
|
Command::Add("assetCount", [](const Command::Params* params)
|
||||||
{
|
{
|
||||||
auto count = 0;
|
auto count = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user