DolphinTool: support WAD verification

This commit is contained in:
Tillmann Karras 2024-05-28 04:15:00 +01:00
parent 8582644058
commit 5255fe5f74
1 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@
#include <fmt/ostream.h> #include <fmt/ostream.h>
#include "Common/StringUtil.h" #include "Common/StringUtil.h"
#include "DiscIO/VolumeDisc.h" #include "DiscIO/Volume.h"
#include "DiscIO/VolumeVerifier.h" #include "DiscIO/VolumeVerifier.h"
#include "UICommon/UICommon.h" #include "UICommon/UICommon.h"
@ -89,7 +89,7 @@ int VerifyCommand(const std::vector<std::string>& args)
parser.add_option("-i", "--input") parser.add_option("-i", "--input")
.type("string") .type("string")
.action("store") .action("store")
.help("Path to disc image FILE.") .help("Path to input file.")
.metavar("FILE"); .metavar("FILE");
parser.add_option("-a", "--algorithm") parser.add_option("-a", "--algorithm")
@ -139,10 +139,10 @@ int VerifyCommand(const std::vector<std::string>& args)
} }
// Open the volume // 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) 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; return EXIT_FAILURE;
} }