2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-01-10 18:51:49 +00:00

chore: add base for image converter tool

This commit is contained in:
Jan
2024-09-23 19:29:58 +02:00
parent fabefc8cd5
commit c37e9984ba
7 changed files with 249 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#include "ImageConverter.h"
#include "ImageConverterArgs.h"
class ImageConverterImpl final : public ImageConverter
{
public:
bool Start(const int argc, const char** argv) override
{
auto shouldContinue = true;
if (!m_args.ParseArgs(argc, argv, shouldContinue))
return false;
if (!shouldContinue)
return true;
return true;
}
private:
ImageConverterArgs m_args;
};
std::unique_ptr<ImageConverter> ImageConverter::Create()
{
return std::make_unique<ImageConverterImpl>();
}