VolumeVerifier: Make high severity "too small" hide low severity "too small"

This commit is contained in:
JosJuice 2020-09-21 12:18:13 +02:00
parent 39df01434c
commit 4f62960fb1
2 changed files with 10 additions and 10 deletions

View File

@ -780,18 +780,9 @@ void VolumeVerifier::CheckDiscSize(const std::vector<Partition>& partitions)
normal_size = DL_DVD_SIZE; normal_size = DL_DVD_SIZE;
if (size < normal_size) if (size < normal_size)
{ m_smaller_than_expected = true;
AddProblem(
Severity::Low,
Common::GetStringT(
"This disc image has an unusual size. This will likely make the emulated "
"loading times longer. You will likely be unable to share input recordings "
"and use NetPlay with anyone who is using a good dump."));
}
else else
{
AddProblem(Severity::Low, Common::GetStringT("This disc image has an unusual size.")); AddProblem(Severity::Low, Common::GetStringT("This disc image has an unusual size."));
}
} }
} }
} }
@ -1323,6 +1314,14 @@ void VolumeVerifier::Finish()
"to merge them into one file."); "to merge them into one file.");
AddProblem(Severity::High, std::move(text)); AddProblem(Severity::High, std::move(text));
} }
else if (m_smaller_than_expected)
{
AddProblem(Severity::Low,
Common::GetStringT(
"This disc image has an unusual size. This will likely make the emulated "
"loading times longer. You will likely be unable to share input recordings "
"and use NetPlay with anyone who is using a good dump."));
}
for (auto [partition, blocks] : m_block_errors) for (auto [partition, blocks] : m_block_errors)
{ {

View File

@ -200,6 +200,7 @@ private:
u64 m_biggest_referenced_offset = 0; u64 m_biggest_referenced_offset = 0;
u64 m_biggest_verified_offset = 0; u64 m_biggest_verified_offset = 0;
bool m_smaller_than_expected = false;
bool m_started = false; bool m_started = false;
bool m_done = false; bool m_done = false;