zonebuilder_out
This commit is contained in:
parent
6c1611b392
commit
4ac496d5b7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user