diff options
| author | JosJuice <josjuice@gmail.com> | 2026-06-22 08:34:04 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2026-06-22 08:36:50 +0200 |
| commit | 53dad6f23012babf65a52764715cdf7fc5f0638c (patch) | |
| tree | da5c802534e1e76436e267b958768b943b6db81a | |
| parent | 47040a183428e8e6e2a5c8c28d8aa0b4d632d1cd (diff) | |
VolumeVerifier: Remove SystemNotAvailable
We had some code in VolumeVerifier to catch the error message that
Redump.org used to show when trying to access the Wii datfile without
logging in. This restriction was removed from Redump.org around the
start of 2022, and the code has been unnecessary ever since.
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 15 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.h | 1 |
2 files changed, 3 insertions, 13 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 2944c31272..3031f14a0f 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -101,10 +101,6 @@ void RedumpVerifier::Start(const Volume& volume) case DownloadStatus::Success: return ScanDatfile(ReadDatfile(system), system); - case DownloadStatus::SystemNotAvailable: - m_result = {Status::Error, Common::GetStringT("Wii data is not public yet")}; - return {}; - case DownloadStatus::Fail: default: m_result = {Status::Error, Common::GetStringT("Failed to connect to Redump.info")}; @@ -121,7 +117,7 @@ static std::string GetPathForSystem(const std::string& system) RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string& system, DownloadStatus old_status) { - if (old_status == DownloadStatus::Success || old_status == DownloadStatus::SystemNotAvailable) + if (old_status == DownloadStatus::Success) return old_status; Common::HttpRequest request; @@ -141,13 +137,8 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string if (result->size() > 1 && (*result)[0] == '<' && (*result)[1] == '!') { // This is an HTML page, not a zip file like we want - - if (File::Exists(output_path)) - return DownloadStatus::FailButOldCacheAvailable; - - const bool system_not_available_match = - Common::ContainsSubrange(*result, "System \"" + system + "\" doesn't exist."); - return system_not_available_match ? DownloadStatus::SystemNotAvailable : DownloadStatus::Fail; + return File::Exists(output_path) ? DownloadStatus::FailButOldCacheAvailable : + DownloadStatus::Fail; } File::CreateFullPath(output_path); diff --git a/Source/Core/DiscIO/VolumeVerifier.h b/Source/Core/DiscIO/VolumeVerifier.h index bb814f8b4d..d057fc83d3 100644 --- a/Source/Core/DiscIO/VolumeVerifier.h +++ b/Source/Core/DiscIO/VolumeVerifier.h @@ -68,7 +68,6 @@ private: Success, Fail, FailButOldCacheAvailable, - SystemNotAvailable, }; struct DownloadState |
