mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 06:44:59 +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"));
|
const bool scrub = static_cast<bool>(options.get("scrub"));
|
||||||
|
|
||||||
// Open the volume
|
// 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 (!volume)
|
||||||
{
|
{
|
||||||
if (scrub)
|
if (scrub)
|
||||||
|
@ -249,7 +249,7 @@ int ConvertCommand(const std::vector<std::string>& args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// --compress, --compress_level
|
// --compress, --compress_level
|
||||||
std::optional<DiscIO::WIARVZCompressionType> compression_o =
|
const std::optional<DiscIO::WIARVZCompressionType> compression_o =
|
||||||
ParseCompressionTypeString(options["compression"]);
|
ParseCompressionTypeString(options["compression"]);
|
||||||
|
|
||||||
std::optional<int> compression_level_o;
|
std::optional<int> compression_level_o;
|
||||||
|
|
|
@ -187,7 +187,8 @@ static bool HandleExtractPartition(const std::string& output, const std::string&
|
||||||
return true;
|
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.append("files/").append(single_file_path);
|
||||||
File::CreateFullPath(file);
|
File::CreateFullPath(file);
|
||||||
|
|
Loading…
Add table
Reference in a new issue