mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-21 00:25:44 +00:00
Create directories for output fastfile for linker
This commit is contained in:
parent
a57201d78d
commit
62247cecda
@ -444,10 +444,13 @@ class Linker::Impl
|
|||||||
|
|
||||||
bool WriteZoneToFile(Zone* zone)
|
bool WriteZoneToFile(Zone* zone)
|
||||||
{
|
{
|
||||||
fs::path zoneFilePath(m_args.GetOutputFolderPathForZone(zone->m_name));
|
const fs::path zoneFolderPath(m_args.GetOutputFolderPathForZone(zone->m_name));
|
||||||
|
auto zoneFilePath(zoneFolderPath);
|
||||||
zoneFilePath.append(zone->m_name + ".ff");
|
zoneFilePath.append(zone->m_name + ".ff");
|
||||||
|
|
||||||
std::ifstream stream(zoneFilePath);
|
fs::create_directories(zoneFolderPath);
|
||||||
|
|
||||||
|
std::ofstream stream(zoneFilePath);
|
||||||
if (!stream.is_open())
|
if (!stream.is_open())
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user