Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10865 from JosJuice/volume-verifier-ios-case
VolumeVerifier: Ignore case when looking for IOS on update partition
  • Loading branch information
leoetlino committed Jul 20, 2022
2 parents 53cf686 + 81a20a1 commit e40be6e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/Core/DiscIO/VolumeVerifier.cpp
Expand Up @@ -640,10 +640,12 @@ bool VolumeVerifier::CheckPartition(const Partition& partition)
{
const std::string ios_ver_str = std::to_string(ios_ver);
const std::string correct_ios =
IsDebugSigned() ? ("firmware.64." + ios_ver_str + ".") : ("IOS" + ios_ver_str + "-");
IsDebugSigned() ? ("firmware.64." + ios_ver_str + ".") : ("ios" + ios_ver_str + "-");
for (const FileInfo& f : *file_info)
{
if (StringBeginsWith(f.GetName(), correct_ios))
std::string file_name = f.GetName();
Common::ToLower(&file_name);
if (StringBeginsWith(file_name, correct_ios))
{
has_correct_ios = true;
break;
Expand Down

0 comments on commit e40be6e

Please sign in to comment.