From a1d6a54eaaa309fd2bcc72a876cb751dce6a1673 Mon Sep 17 00:00:00 2001 From: Dentomologist Date: Tue, 13 Feb 2024 11:44:41 -0800 Subject: [PATCH] DolphinTool: Fix parsing of command line bzip2 flag Use "bzip2" instead of "bzip" in optparse's compression choices for the convert command. This is both more accurate and matches what the ParseCompressionTypeString function expects. The mismatch between the two parsing functions prevented compression using bzip2 because either ParseCompressionTypeString or optparse would generate an error when using "bzip" or "bzip2" respectively. Fixes https://bugs.dolphin-emu.org/issues/13427 --- Source/Core/DolphinTool/ConvertCommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinTool/ConvertCommand.cpp b/Source/Core/DolphinTool/ConvertCommand.cpp index ec128da54b..ed494ef2d8 100644 --- a/Source/Core/DolphinTool/ConvertCommand.cpp +++ b/Source/Core/DolphinTool/ConvertCommand.cpp @@ -102,7 +102,7 @@ int ConvertCommand(const std::vector& args) .action("store") .help("Compression method to use when converting to WIA/RVZ. Suggested value for RVZ: zstd " "[%choices]") - .choices({"none", "zstd", "bzip", "lzma", "lzma2"}); + .choices({"none", "zstd", "bzip2", "lzma", "lzma2"}); parser.add_option("-l", "--compression_level") .type("int")