فهرست منبع

Merge pull request #9417 from liamwhite/debug-assert

memory: remove DEBUG_ASSERT pointer test
Mai 3 سال پیش
والد
کامیت
a5bc86a9ac
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      src/core/memory.cpp

+ 0 - 2
src/core/memory.cpp

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