diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 35b0b5670d..a4725cbbe2 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -144,11 +144,8 @@ RedumpVerifier::DownloadStatus RedumpVerifier::DownloadDatfile(const std::string if (File::Exists(output_path)) return DownloadStatus::FailButOldCacheAvailable; - const std::string system_not_available_message = "System \"" + system + "\" doesn't exist."; const bool system_not_available_match = - result->end() != std::search(result->begin(), result->end(), - system_not_available_message.begin(), - system_not_available_message.end()); + Common::ContainsSubrange(*result, "System \"" + system + "\" doesn't exist."); return system_not_available_match ? DownloadStatus::SystemNotAvailable : DownloadStatus::Fail; }