mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
d0d27028a0
This was requested by a forum user, and I thought why not. It's a simple change to make since DiscIO already supports it, and I assume command-line users know roughly what they're doing.
28 lines
623 B
C++
28 lines
623 B
C++
// Copyright 2021 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#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>
|
|
ParseCompressionTypeString(const std::string& compression_str);
|
|
std::optional<DiscIO::BlobType> ParseFormatString(const std::string& format_str);
|
|
};
|
|
|
|
} // namespace DolphinTool
|