mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
Merge pull request #12814 from Tilka/verify_wad
DolphinTool: support WAD verification
This commit is contained in:
commit
8ac22378a1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user