diff options
| author | Pokechu22 <Pokechu022@gmail.com> | 2021-04-01 14:30:01 -0700 |
|---|---|---|
| committer | Pokechu22 <Pokechu022@gmail.com> | 2021-04-02 10:18:18 -0700 |
| commit | 004dfd1586f787f27f36c4326b9222a314295735 (patch) | |
| tree | d00fdf2411f117a66f64def7ca1e59661d1ce642 /Source/Core/DiscIO/VolumeVerifier.cpp | |
| parent | a2fa9aab5be3ec4916bd3beb05163c325dcbc9dd (diff) | |
Replace uses of cassert with Common/Assert.h
Diffstat (limited to 'Source/Core/DiscIO/VolumeVerifier.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeVerifier.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/VolumeVerifier.cpp b/Source/Core/DiscIO/VolumeVerifier.cpp index 434f16f18b..efbf844794 100644 --- a/Source/Core/DiscIO/VolumeVerifier.cpp +++ b/Source/Core/DiscIO/VolumeVerifier.cpp @@ -5,7 +5,6 @@ #include "DiscIO/VolumeVerifier.h" #include <algorithm> -#include <cassert> #include <future> #include <limits> #include <memory> @@ -696,7 +695,7 @@ bool VolumeVerifier::ShouldHaveChannelPartition() const "RFNE01", "RFNJ01", "RFNK01", "RFNP01", "RFNW01", "RFPE01", "RFPJ01", "RFPK01", "RFPP01", "RFPW01", "RGWE41", "RGWJ41", "RGWP41", "RGWX41", "RMCE01", "RMCJ01", "RMCK01", "RMCP01", }; - assert(std::is_sorted(channel_discs.cbegin(), channel_discs.cend())); + DEBUG_ASSERT(std::is_sorted(channel_discs.cbegin(), channel_discs.cend())); return std::binary_search(channel_discs.cbegin(), channel_discs.cend(), std::string_view(m_volume.GetGameID())); @@ -729,7 +728,7 @@ bool VolumeVerifier::ShouldBeDualLayer() const "SLSEXJ", "SLSP01", "SQIE4Q", "SQIP4Q", "SQIY4Q", "SR5E41", "SR5P41", "SUOE41", "SUOP41", "SVXX52", "SVXY52", "SX4E01", "SX4P01", "SZ3EGT", "SZ3PGT", }; - assert(std::is_sorted(dual_layer_discs.cbegin(), dual_layer_discs.cend())); + DEBUG_ASSERT(std::is_sorted(dual_layer_discs.cbegin(), dual_layer_discs.cend())); return std::binary_search(dual_layer_discs.cbegin(), dual_layer_discs.cend(), std::string_view(m_volume.GetGameID())); |
