summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2018-03-16 11:59:14 -0400
committerGitHub <noreply@github.com>2018-03-16 11:59:14 -0400
commit9f4d5122a2a1b2d0dbfd6164a616d1c859ef0d0b (patch)
treeb1abde9e2426fee186ef9ae114d76e03ebaeae3e /Source/Core/DiscIO
parent1259370cdfcc23c0939bb72fb5dcf2e62096192f (diff)
parent50a476c3714b3c423609ec04ce424c244bd2a1c1 (diff)
Merge pull request #6438 from lioncash/assert
Assert: Uppercase assertion macros
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/DirectoryBlob.cpp6
-rw-r--r--Source/Core/DiscIO/VolumeGC.cpp2
-rw-r--r--Source/Core/DiscIO/VolumeWad.cpp2
-rw-r--r--Source/Core/DiscIO/VolumeWii.cpp2
-rw-r--r--Source/Core/DiscIO/WbfsBlob.cpp2
-rw-r--r--Source/Core/DiscIO/WiiWad.cpp2
6 files changed, 8 insertions, 8 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp
index 696877b528..5cbdc08210 100644
--- a/Source/Core/DiscIO/DirectoryBlob.cpp
+++ b/Source/Core/DiscIO/DirectoryBlob.cpp
@@ -92,7 +92,7 @@ bool DiscContent::Read(u64* offset, u64* length, u8** buffer) const
if (m_size == 0)
return true;
- _dbg_assert_(DISCIO, *offset >= m_offset);
+ DEBUG_ASSERT(DISCIO, *offset >= m_offset);
const u64 offset_in_content = *offset - m_offset;
if (offset_in_content < m_size)
@@ -160,7 +160,7 @@ bool DiscContentContainer::Read(u64 offset, u64 length, u8* buffer) const
return false;
++it;
- _dbg_assert_(DISCIO, it == m_contents.end() || it->GetOffset() >= offset);
+ DEBUG_ASSERT(DISCIO, it == m_contents.end() || it->GetOffset() >= offset);
}
// Zero fill if we went beyond the last DiscContent
@@ -688,7 +688,7 @@ void DirectoryBlobPartition::BuildFST(u64 fst_address)
name_table_offset);
// overflow check, compare the aligned name offset with the aligned name table size
- _assert_(Common::AlignUp(name_offset, 1ull << m_address_shift) == name_table_size);
+ ASSERT(Common::AlignUp(name_offset, 1ull << m_address_shift) == name_table_size);
// write FST size and location
Write32((u32)(fst_address >> m_address_shift), 0x0424, &m_disc_header);
diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp
index 64c0daefca..1de11d3545 100644
--- a/Source/Core/DiscIO/VolumeGC.cpp
+++ b/Source/Core/DiscIO/VolumeGC.cpp
@@ -30,7 +30,7 @@ namespace DiscIO
{
VolumeGC::VolumeGC(std::unique_ptr<BlobReader> reader) : m_pReader(std::move(reader))
{
- _assert_(m_pReader);
+ ASSERT(m_pReader);
m_file_system = [this]() -> std::unique_ptr<FileSystem> {
auto file_system = std::make_unique<FileSystemGCWii>(this, PARTITION_NONE);
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp
index 2d98986f81..ce58f400bb 100644
--- a/Source/Core/DiscIO/VolumeWad.cpp
+++ b/Source/Core/DiscIO/VolumeWad.cpp
@@ -28,7 +28,7 @@ namespace DiscIO
{
VolumeWAD::VolumeWAD(std::unique_ptr<BlobReader> reader) : m_reader(std::move(reader))
{
- _assert_(m_reader);
+ ASSERT(m_reader);
// Source: http://wiibrew.org/wiki/WAD_files
m_hdr_size = m_reader->ReadSwapped<u32>(0x00).value_or(0);
diff --git a/Source/Core/DiscIO/VolumeWii.cpp b/Source/Core/DiscIO/VolumeWii.cpp
index bc0c410c13..135afcb603 100644
--- a/Source/Core/DiscIO/VolumeWii.cpp
+++ b/Source/Core/DiscIO/VolumeWii.cpp
@@ -39,7 +39,7 @@ VolumeWii::VolumeWii(std::unique_ptr<BlobReader> reader)
: m_pReader(std::move(reader)), m_game_partition(PARTITION_NONE),
m_last_decrypted_block(UINT64_MAX)
{
- _assert_(m_pReader);
+ ASSERT(m_pReader);
if (m_pReader->ReadSwapped<u32>(0x60) != u32(0))
{
diff --git a/Source/Core/DiscIO/WbfsBlob.cpp b/Source/Core/DiscIO/WbfsBlob.cpp
index ae379e6e51..0227a692c2 100644
--- a/Source/Core/DiscIO/WbfsBlob.cpp
+++ b/Source/Core/DiscIO/WbfsBlob.cpp
@@ -58,7 +58,7 @@ void WbfsFileReader::OpenAdditionalFiles(const std::string& path)
if (path.length() < 4)
return;
- _assert_(m_files.size() > 0); // The code below gives .wbf0 for index 0, but it should be .wbfs
+ ASSERT(m_files.size() > 0); // The code below gives .wbf0 for index 0, but it should be .wbfs
while (true)
{
diff --git a/Source/Core/DiscIO/WiiWad.cpp b/Source/Core/DiscIO/WiiWad.cpp
index 8d6272d3a8..e980455779 100644
--- a/Source/Core/DiscIO/WiiWad.cpp
+++ b/Source/Core/DiscIO/WiiWad.cpp
@@ -74,7 +74,7 @@ bool WiiWAD::ParseWAD()
}
if (MAX_LOGLEVEL >= LogTypes::LOG_LEVELS::LDEBUG)
- _dbg_assert_msg_(BOOT, *reserved == 0x00, "WiiWAD: Reserved must be 0x00");
+ DEBUG_ASSERT_MSG(BOOT, *reserved == 0x00, "WiiWAD: Reserved must be 0x00");
u32 offset = 0x40;
m_certificate_chain = CreateWADEntry(*m_reader, *certificate_chain_size, offset);