Include and exclude asset type dumping configured by command line args

This commit is contained in:
Jan
2021-10-11 18:47:53 +02:00
parent e70cbaa4ce
commit 868bd070d0
21 changed files with 476 additions and 576 deletions

View File

@ -34,4 +34,14 @@ bool ObjWriting::DumpZone(AssetDumpingContext& context)
}
return false;
}
}
bool ObjWriting::ShouldHandleAssetType(const asset_type_t assetType)
{
if (assetType < 0)
return false;
if (static_cast<size_t>(assetType) >= Configuration.AssetTypesToHandleBitfield.size())
return true;
return Configuration.AssetTypesToHandleBitfield[assetType];
}