mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-20 16:15:43 +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)
|
||||
{
|
||||
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");
|
||||
|
||||
std::ifstream stream(zoneFilePath);
|
||||
fs::create_directories(zoneFolderPath);
|
||||
|
||||
std::ofstream stream(zoneFilePath);
|
||||
if (!stream.is_open())
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user