Merge pull request #12814 from Tilka/verify_wad

DolphinTool: support WAD verification
This commit is contained in:
Tilka 2024-05-28 20:48:15 +01:00 committed by GitHub
commit 8ac22378a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,7 +12,7 @@
#include <fmt/ostream.h>
#include "Common/StringUtil.h"
#include "DiscIO/VolumeDisc.h"
#include "DiscIO/Volume.h"
#include "DiscIO/VolumeVerifier.h"
#include "UICommon/UICommon.h"
@ -89,7 +89,7 @@ int VerifyCommand(const std::vector<std::string>& args)
parser.add_option("-i", "--input")
.type("string")
.action("store")
.help("Path to disc image FILE.")
.help("Path to input file.")
.metavar("FILE");
parser.add_option("-a", "--algorithm")
@ -139,10 +139,10 @@ int VerifyCommand(const std::vector<std::string>& args)
}
// Open the volume
const std::unique_ptr<DiscIO::VolumeDisc> volume = DiscIO::CreateDisc(input_file_path);
const std::unique_ptr<DiscIO::Volume> volume = DiscIO::CreateVolume(input_file_path);
if (!volume)
{
fmt::print(std::cerr, "Error: Unable to open disc image\n");
fmt::print(std::cerr, "Error: Unable to open input file\n");
return EXIT_FAILURE;
}