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:
27
src/ImageConverter/ImageConverter.cpp
Normal file
27
src/ImageConverter/ImageConverter.cpp
Normal 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>();
|
||||
}
|
||||
Reference in New Issue
Block a user