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

@ -1 +1 @@
Subproject commit 31c5ef1bc32fcff6ecd1d774852a2f5506a65aea
Subproject commit a17eae4142f3ab5eea8189810189ab1fec67294a

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())