mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#include "ObjCompilerT6.h"
|
|
|
|
#include "Game/T6/T6.h"
|
|
#include "Image/ImageIwdPostProcessor.h"
|
|
|
|
#include <memory>
|
|
|
|
using namespace T6;
|
|
namespace fs = std::filesystem;
|
|
|
|
namespace
|
|
{
|
|
void ConfigureCompilers(AssetCreatorCollection& collection, Zone& zone, ISearchPath& searchPath)
|
|
{
|
|
auto& memory = *zone.GetMemory();
|
|
|
|
// No compilers yet
|
|
}
|
|
|
|
void ConfigurePostProcessors(AssetCreatorCollection& collection, Zone& zone, ISearchPath& searchPath, const fs::path& outDir)
|
|
{
|
|
auto& memory = *zone.GetMemory();
|
|
|
|
collection.AddAssetPostProcessor(std::make_unique<ImageIwdPostProcessor<AssetImage>>(searchPath, outDir));
|
|
}
|
|
} // namespace
|
|
|
|
void ObjCompiler::ConfigureCreatorCollection(AssetCreatorCollection& collection,
|
|
Zone& zone,
|
|
const ZoneDefinition& zoneDefinition,
|
|
ISearchPath& searchPath,
|
|
IGdtQueryable& gdt,
|
|
const fs::path& outDir,
|
|
const fs::path& cacheDir) const
|
|
{
|
|
ConfigurePostProcessors(collection, zone, searchPath, outDir);
|
|
}
|