mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 14:24:54 +00:00
DolphinTool: Make variables constant
This commit is contained in:
parent
89873d6238
commit
03a6fdcd85
2 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -187,7 +187,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);
|
||||
|
|
Loading…
Add table
Reference in a new issue