From deba9ce2564485c7fe078d4e73d0d2cba722b1ac Mon Sep 17 00:00:00 2001 From: Minty-Meeo <45425365+Minty-Meeo@users.noreply.github.com> Date: Thu, 24 Feb 2022 04:51:52 -0600 Subject: Added a way to check Block Size, Compression Method, and Compression Level flags to dolphin-tool New dolphin-tool command: "header" -b / --block_size -c / --compression -l / --compression_level Informative RVZ/WIA header2 value "compression_level" is now a s32 instead of a u32, because negative compression is a thing. Speaking of, it is now possible to use negative compression levels in dolphin-tool's convert command (not the GUI, though). --- Source/Core/DolphinTool/ToolMain.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/Core/DolphinTool/ToolMain.cpp') diff --git a/Source/Core/DolphinTool/ToolMain.cpp b/Source/Core/DolphinTool/ToolMain.cpp index 31c668bd4a..6a5f687c4f 100644 --- a/Source/Core/DolphinTool/ToolMain.cpp +++ b/Source/Core/DolphinTool/ToolMain.cpp @@ -10,12 +10,13 @@ #include "Common/Version.h" #include "DolphinTool/Command.h" #include "DolphinTool/ConvertCommand.h" +#include "DolphinTool/HeaderCommand.h" #include "DolphinTool/VerifyCommand.h" static int PrintUsage(int code) { std::cerr << "usage: dolphin-tool COMMAND -h" << std::endl << std::endl; - std::cerr << "commands supported: [convert, verify]" << std::endl; + std::cerr << "commands supported: [convert, verify, header]" << std::endl; return code; } @@ -38,6 +39,8 @@ int main(int argc, char* argv[]) command = std::make_unique(); else if (command_str == "verify") command = std::make_unique(); + else if (command_str == "header") + command = std::make_unique(); else return PrintUsage(1); -- cgit v1.2.3