mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
DolphinTool: CLI utility interface and disc image tools
This commit is contained in:
parent
1e212d6212
commit
1aa8a4d46f
19 changed files with 968 additions and 26 deletions
32
Source/Core/DolphinTool/VerifyCommand.h
Normal file
32
Source/Core/DolphinTool/VerifyCommand.h
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue