mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
DolphinTool: Add an image extract command
This commit is contained in:

committed by
Admiral H. Curtiss

parent
1805f6e381
commit
859ac40ca2
@ -3,7 +3,6 @@
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
@ -13,10 +12,10 @@
|
||||
#include <fmt/ostream.h>
|
||||
|
||||
#include "Common/StringUtil.h"
|
||||
#include "Common/Version.h"
|
||||
#include "Core/Core.h"
|
||||
|
||||
#include "DolphinTool/ConvertCommand.h"
|
||||
#include "DolphinTool/ExtractCommand.h"
|
||||
#include "DolphinTool/HeaderCommand.h"
|
||||
#include "DolphinTool/VerifyCommand.h"
|
||||
|
||||
@ -24,7 +23,7 @@ static void PrintUsage()
|
||||
{
|
||||
fmt::print(std::cerr, "usage: dolphin-tool COMMAND -h\n"
|
||||
"\n"
|
||||
"commands supported: [convert, verify, header]\n");
|
||||
"commands supported: [convert, verify, header, extract]\n");
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
@ -51,6 +50,8 @@ int main(int argc, char* argv[])
|
||||
return DolphinTool::VerifyCommand(args);
|
||||
else if (command_str == "header")
|
||||
return DolphinTool::HeaderCommand(args);
|
||||
else if (command_str == "extract")
|
||||
return DolphinTool::Extract(args);
|
||||
PrintUsage();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user