summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeVerifier.cpp
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2021-08-16 20:47:07 +0100
committerGitHub <noreply@github.com>2021-08-16 20:47:07 +0100
commit0f628ff8824b8a8fcf3fe881b74e408ccbf00d59 (patch)
treec2e8eb1d1efa1a04d7e79f15474432de211dd39b /Source/Core/DiscIO/VolumeVerifier.cpp
parent611b6ad23113c1ce8bedc95cc6781acf1582a177 (diff)
parent95d34163059b4448f67e03a231a75154f82bc295 (diff)
Merge pull request #10028 from GerbilSoft/bugfix/RVT-firmware-filenames
VolumeVerifier: Use correct IOS filename for development discs.
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeVerifier.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp
index 5198cdd125..a31243c006 100644
--- a/Source/Core/DiscIO/VolumeVerifier.cpp
+++ b/Source/Core/DiscIO/VolumeVerifier.cpp
@@ -630,14 +630,17 @@ bool VolumeVerifier::CheckPartition(const Partition& partition)
// IOS9 is the only IOS which can be assumed to exist in a working state on any Wii
// regardless of what updates have been installed. At least Mario Party 8
// (RM8E01, revision 2) uses IOS9 without having it in its update partition.
- bool has_correct_ios = tmd.IsValid() && (tmd.GetIOSId() & 0xFF) == 9;
+ const u64 ios_ver = tmd.GetIOSId() & 0xFF;
+ bool has_correct_ios = tmd.IsValid() && ios_ver == 9;
if (!has_correct_ios && tmd.IsValid())
{
std::unique_ptr<FileInfo> file_info = filesystem->FindFileInfo("_sys");
if (file_info)
{
- const std::string correct_ios = "IOS" + std::to_string(tmd.GetIOSId() & 0xFF) + "-";
+ 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 + "-");
for (const FileInfo& f : *file_info)
{
if (StringBeginsWith(f.GetName(), correct_ios))