zonebuilder_out

This commit is contained in:
Louvenarde 2024-01-29 00:52:01 +01:00
parent 6c1611b392
commit 4ac496d5b7

View File

@ -44,7 +44,7 @@ namespace Components
}
ZoneBuilder::Zone::Zone(const std::string& name) : ZoneBuilder::Zone::Zone(name, name, std::format("zone/english/{}.ff", name))
ZoneBuilder::Zone::Zone(const std::string& name) : ZoneBuilder::Zone::Zone(name, name, std::format("zonebuilder_out/{}.ff", name))
{
}
@ -462,6 +462,10 @@ namespace Components
outBuffer.append(zoneBuffer);
// Make sure directory exists
const auto directoryName = std::filesystem::path(destination).parent_path();
Utils::IO::CreateDir(directoryName.string());
Utils::IO::WriteFile(destination, outBuffer);
Logger::Print("done writing {}\n", destination);