mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-12 07:48:16 -05:00
Unlinker: Make zone files creators game dependent and in the unlinker project instead of the ObjWriting component
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Zone/Zone.h"
|
||||
#include "Utils/FileAPI.h"
|
||||
|
||||
class IZoneDumper
|
||||
{
|
||||
@ -10,5 +9,4 @@ public:
|
||||
|
||||
virtual bool CanHandleZone(Zone* zone) const = 0;
|
||||
virtual bool DumpZone(Zone* zone, const std::string& basePath) const = 0;
|
||||
virtual bool WriteZoneDefinition(Zone* zone, FileAPI::File* file) const = 0;
|
||||
};
|
@ -78,9 +78,4 @@ bool ZoneDumperT6::DumpZone(Zone* zone, const std::string& basePath) const
|
||||
return true;
|
||||
|
||||
#undef DUMP_ASSET_POOL
|
||||
}
|
||||
|
||||
bool ZoneDumperT6::WriteZoneDefinition(Zone* zone, FileAPI::File* file) const
|
||||
{
|
||||
return true;
|
||||
}
|
@ -6,5 +6,4 @@ class ZoneDumperT6 final : public IZoneDumper
|
||||
public:
|
||||
bool CanHandleZone(Zone* zone) const override;
|
||||
bool DumpZone(Zone* zone, const std::string& basePath) const override;
|
||||
bool WriteZoneDefinition(Zone* zone, FileAPI::File* file) const override;
|
||||
};
|
||||
|
@ -26,9 +26,4 @@ bool ObjWriting::DumpZone(Zone* zone, const std::string& basePath)
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ObjWriting::WriteZoneDefinition(Zone* zone, FileAPI::File* file)
|
||||
{
|
||||
return file->Printf("// %s", "Insert zone definition here") > 0;
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "Zone/Zone.h"
|
||||
#include "Utils/FileAPI.h"
|
||||
#include <string>
|
||||
|
||||
class ObjWriting
|
||||
@ -18,10 +17,8 @@ public:
|
||||
|
||||
bool Verbose = false;
|
||||
ImageOutputFormat_e ImageOutputFormat = ImageOutputFormat_e::DDS;
|
||||
bool MinimalZoneFileOutput = false;
|
||||
|
||||
} Configuration;
|
||||
|
||||
static bool DumpZone(Zone* zone, const std::string& basePath);
|
||||
static bool WriteZoneDefinition(Zone* zone, FileAPI::File* file);
|
||||
};
|
||||
|
Reference in New Issue
Block a user