mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-15 17:27:57 -05:00
Include and exclude asset type dumping configured by command line args
This commit is contained in:
@ -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];
|
||||
}
|
||||
|
Reference in New Issue
Block a user