2021-12-03 21:40:19 +00:00
|
|
|
// Copyright 2021 Dolphin Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <optional>
|
2022-03-12 08:48:12 +00:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2021-12-03 21:40:19 +00:00
|
|
|
|
|
|
|
#include "DiscIO/Blob.h"
|
|
|
|
#include "DiscIO/WIABlob.h"
|
|
|
|
#include "DolphinTool/Command.h"
|
|
|
|
|
|
|
|
namespace DolphinTool
|
|
|
|
{
|
|
|
|
class ConvertCommand final : public Command
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
int Main(const std::vector<std::string>& args) override;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::optional<DiscIO::WIARVZCompressionType>
|
2022-03-12 08:48:12 +00:00
|
|
|
ParseCompressionTypeString(const std::string& compression_str);
|
|
|
|
std::optional<DiscIO::BlobType> ParseFormatString(const std::string& format_str);
|
2021-12-03 21:40:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace DolphinTool
|