No structured data shenanigans while dumping
This commit is contained in:
parent
4badcdd008
commit
70f34a9319
@ -165,6 +165,10 @@ namespace Components
|
||||
// TODO: Since all of the following is zonebuilder-only code, move it to IW4OF or IStructuredDataDefSet.cpp
|
||||
AssetHandler::OnLoad([](Game::XAssetType type, Game::XAssetHeader asset, const std::string& filename, bool* /*restrict*/)
|
||||
{
|
||||
if (ZoneBuilder::IsDumpingZone()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Only intercept playerdatadef loading
|
||||
if (type != Game::ASSET_TYPE_STRUCTURED_DATA_DEF || filename != "mp/playerdata.def") return;
|
||||
|
||||
|
@ -129,6 +129,7 @@ namespace Components
|
||||
#endif
|
||||
|
||||
static bool IsEnabled();
|
||||
static bool IsDumpingZone() { return DumpingZone.length() > 0; };
|
||||
|
||||
static std::string TraceZone;
|
||||
static std::vector<std::pair<Game::XAssetType, std::string>> TraceAssets;
|
||||
|
Loading…
Reference in New Issue
Block a user