[Xboxkrnl] Remove devkit memory access assert and replace with warning

This commit is contained in:
Herman S.
2025-09-29 16:19:26 +09:00
parent 341a735142
commit 5ac07f686d

View File

@@ -76,7 +76,14 @@ dword_result_t NtAllocateVirtualMemory_entry(lpdword_t base_addr_ptr,
assert_not_null(region_size_ptr);
// Set to TRUE when allocation is from devkit memory area.
assert_true(debug_memory == 0);
// We don't support separate devkit memory, so just ignore this flag.
if (debug_memory) {
XELOGW(
"Game is attempting to allocate devkit debug memory (base: {:08X}, "
"size: {:08X}). Ignoring debug flag and using normal allocation.",
base_addr_ptr ? uint32_t(*base_addr_ptr) : 0,
region_size_ptr ? uint32_t(*region_size_ptr) : 0);
}
// This allocates memory from the kernel heap, which is initialized on startup
// and shared by both the kernel implementation and user code.