Add -dump flag
This commit is contained in:
parent
b53f5bdf53
commit
e63e56edc7
2
deps/mongoose
vendored
2
deps/mongoose
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 31c5ef1bc32fcff6ecd1d774852a2f5506a65aea
|
Subproject commit a17eae4142f3ab5eea8189810189ab1fec67294a
|
@ -104,6 +104,11 @@ namespace Components
|
|||||||
|
|
||||||
if (type == Game::XAssetType::ASSET_TYPE_MAP_ENTS)
|
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;
|
static std::string mapEntities;
|
||||||
FileSystem::File ents(name + ".ents");
|
FileSystem::File ents(name + ".ents");
|
||||||
if (ents.Exists())
|
if (ents.Exists())
|
||||||
|
Loading…
Reference in New Issue
Block a user