mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-11 07:18:11 -05:00
ZoneWriting stuff
This commit is contained in:
@ -15,6 +15,7 @@
|
||||
#include "SearchPath/SearchPathFilesystem.h"
|
||||
#include "ObjContainer/IWD/IWD.h"
|
||||
#include "LinkerArgs.h"
|
||||
#include "ZoneWriting.h"
|
||||
#include "ZoneCreation/ZoneCreationContext.h"
|
||||
#include "ZoneCreation/IZoneCreator.h"
|
||||
#include "Game/IW4/ZoneCreatorIW4.h"
|
||||
@ -446,6 +447,13 @@ class Linker::Impl
|
||||
if (!stream.is_open())
|
||||
return false;
|
||||
|
||||
if(!ZoneWriting::WriteZone(stream, zone))
|
||||
{
|
||||
std::cout << "Writing zone failed." << std::endl;
|
||||
stream.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
stream.close();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user