Add -dump flag

This commit is contained in:
momo5502
2016-10-18 19:36:53 +02:00
parent b53f5bdf53
commit e63e56edc7
2 changed files with 6 additions and 1 deletions

2
deps/mongoose vendored

View File

@ -104,6 +104,11 @@ namespace Components
if (type == Game::XAssetType::ASSET_TYPE_MAP_ENTS)
{
if (Flags::HasFlag("dump"))
{
Utils::IO::WriteFile(fmt::sprintf("raw/%s.ents", name), asset.mapEnts->entityString);
}
static std::string mapEntities;
FileSystem::File ents(name + ".ents");
if (ents.Exists())