diff options
| author | ssdsnake <id4-ssdsnake@proxyid.net> | 2021-12-03 15:40:19 -0600 |
|---|---|---|
| committer | ssdsnake <id4-ssdsnake@proxyid.net> | 2021-12-03 15:40:19 -0600 |
| commit | 1aa8a4d46ffbf019f6bb4bccb81cc89bec07bb38 (patch) | |
| tree | 725a6aedd59f48ffaf32a213dafe1a1a68200a63 /Source/Core/DolphinTool/VerifyCommand.h | |
| parent | 1e212d6212e8ee35c2fda7291ec61651e3c4324e (diff) | |
DolphinTool: CLI utility interface and disc image tools
Diffstat (limited to 'Source/Core/DolphinTool/VerifyCommand.h')
| -rw-r--r-- | Source/Core/DolphinTool/VerifyCommand.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Source/Core/DolphinTool/VerifyCommand.h b/Source/Core/DolphinTool/VerifyCommand.h new file mode 100644 index 0000000000..1cd0794ba5 --- /dev/null +++ b/Source/Core/DolphinTool/VerifyCommand.h @@ -0,0 +1,32 @@ +// Copyright 2021 Dolphin Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#pragma once + +#include <iostream> +#include <string> +#include <vector> + +#include "DiscIO/Volume.h" +#include "DiscIO/VolumeDisc.h" +#include "DiscIO/VolumeVerifier.h" +#include "DolphinTool/Command.h" + +namespace DolphinTool +{ +class VerifyCommand final : public Command +{ +public: + int Main(const std::vector<std::string>& args) override; + +private: + void PrintFullReport(const std::optional<DiscIO::VolumeVerifier::Result> result); + + std::optional<DiscIO::VolumeVerifier::Result> + VerifyVolume(std::shared_ptr<DiscIO::VolumeDisc> volume, bool enable_crc32, bool enable_md5, + bool enable_sha1); + + std::string HashToHexString(const std::vector<u8>& hash); +}; + +} // namespace DolphinTool |
