mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-09-06 08:47:26 +00:00
feat: add post processors compiling iwds and ipaks
This commit is contained in:
17
src/ObjCompiling/Image/IPak/IPakCreator.cpp
Normal file
17
src/ObjCompiling/Image/IPak/IPakCreator.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "IPakCreator.h"
|
||||
|
||||
#include <format>
|
||||
#include <iostream>
|
||||
|
||||
void IPakCreator::AddImage(std::string imageName)
|
||||
{
|
||||
m_image_names.emplace_back(std::move(imageName));
|
||||
}
|
||||
|
||||
void IPakCreator::Finalize(ISearchPath& searchPath, const std::filesystem::path& outPath)
|
||||
{
|
||||
std::cout << std::format("Creating ipak with {} entries:\n", m_image_names.size());
|
||||
|
||||
for (const auto& imageName : m_image_names)
|
||||
std::cout << std::format(" {}\n", imageName);
|
||||
}
|
Reference in New Issue
Block a user