diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2025-05-07 15:47:14 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-07 15:47:14 -0500 |
| commit | b8ca3c8d1532eb72662d905fda07cc1e22d5265e (patch) | |
| tree | ff26e53901b035f58bf36c14eed63ce005d40454 /Source | |
| parent | c4616226ab382e5ace030bb223436e1378058224 (diff) | |
| parent | 03a6fdcd857d1bed3d96ca02d4b14e039d422c69 (diff) | |
Merge pull request #13575 from tygyh/DolphinTool-Make-variables-constant
DolphinTool: Make variables constant
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinTool/ConvertCommand.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/DolphinTool/ExtractCommand.cpp | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Source/Core/DolphinTool/ConvertCommand.cpp b/Source/Core/DolphinTool/ConvertCommand.cpp index 863cd4b70b..210e608d2a 100644 --- a/Source/Core/DolphinTool/ConvertCommand.cpp +++ b/Source/Core/DolphinTool/ConvertCommand.cpp @@ -156,7 +156,7 @@ int ConvertCommand(const std::vector<std::string>& args) const bool scrub = static_cast<bool>(options.get("scrub")); // Open the volume - std::unique_ptr<DiscIO::Volume> volume = DiscIO::CreateDisc(input_file_path); + const std::unique_ptr<DiscIO::Volume> volume = DiscIO::CreateDisc(input_file_path); if (!volume) { if (scrub) @@ -249,7 +249,7 @@ int ConvertCommand(const std::vector<std::string>& args) } // --compress, --compress_level - std::optional<DiscIO::WIARVZCompressionType> compression_o = + const std::optional<DiscIO::WIARVZCompressionType> compression_o = ParseCompressionTypeString(options["compression"]); std::optional<int> compression_level_o; diff --git a/Source/Core/DolphinTool/ExtractCommand.cpp b/Source/Core/DolphinTool/ExtractCommand.cpp index 40237c02a5..b9beed24c1 100644 --- a/Source/Core/DolphinTool/ExtractCommand.cpp +++ b/Source/Core/DolphinTool/ExtractCommand.cpp @@ -188,7 +188,8 @@ static bool HandleExtractPartition(const std::string& output, const std::string& return true; } - if (auto file_info = GetFileInfo(disc_volume, partition, single_file_path); file_info != nullptr) + const auto file_info = GetFileInfo(disc_volume, partition, single_file_path); + if (file_info != nullptr) { file.append("files/").append(single_file_path); File::CreateFullPath(file); |
