summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-07-17 09:20:12 +0200
committerJosJuice <josjuice@gmail.com>2022-07-17 09:20:12 +0200
commit81a20a1d74da79f044ecbb489a17ffc0ff54d1f3 (patch)
treedb0b2651e4c38cddd1039234c6d361bcd6c58531 /Source/Core
parentbe551b15290519551ea6ec4b9627348b16bf075f (diff)
VolumeVerifier: Ignore case when looking for IOS on update partition
One of the Dragon Quest X expansions (S4SJGD) uses lowercase instead of the usual uppercase for the IOS59 file on its update partition.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index fc1eddfb19..4e311722d4 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -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;