yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #9417 from liamwhite/debug-assert

memory: remove DEBUG_ASSERT pointer test
This commit is contained in:
Mai 2022-12-10 19:08:45 +00:00 committed by GitHub
commit a5bc86a9ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -195,13 +195,11 @@ struct Memory::Impl {
break; break;
} }
case Common::PageType::Memory: { case Common::PageType::Memory: {
DEBUG_ASSERT(pointer);
u8* mem_ptr = pointer + page_offset + (page_index << YUZU_PAGEBITS); u8* mem_ptr = pointer + page_offset + (page_index << YUZU_PAGEBITS);
on_memory(copy_amount, mem_ptr); on_memory(copy_amount, mem_ptr);
break; break;
} }
case Common::PageType::DebugMemory: { case Common::PageType::DebugMemory: {
DEBUG_ASSERT(pointer);
u8* const mem_ptr{GetPointerFromDebugMemory(current_vaddr)}; u8* const mem_ptr{GetPointerFromDebugMemory(current_vaddr)};
on_memory(copy_amount, mem_ptr); on_memory(copy_amount, mem_ptr);
break; break;