From 396698d0be550fef4a0cab6d90baed6bb6ceea23 Mon Sep 17 00:00:00 2001 From: DH Date: Wed, 13 Nov 2024 21:56:57 +0300 Subject: [PATCH] dmem: do not report main dmem size in get total size --- rpcsx/iodev/dmem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcsx/iodev/dmem.cpp b/rpcsx/iodev/dmem.cpp index 92008f2..cd28ee5 100644 --- a/rpcsx/iodev/dmem.cpp +++ b/rpcsx/iodev/dmem.cpp @@ -45,7 +45,7 @@ orbis::ErrorCode DmemDevice::mmap(void **address, std::uint64_t len, if (prot == 0) { // hack // fixme: implement protect for pid - prot = vm::kMapProtCpuWrite | vm::kMapProtCpuRead | vm::kMapProtGpuAll; + prot = vm::kMapProtCpuReadWrite | vm::kMapProtGpuAll; } if (*address == nullptr) { @@ -92,7 +92,7 @@ static orbis::ErrorCode dmem_ioctl(orbis::File *file, std::uint64_t request, switch (request) { case 0x4008800a: // get size ORBIS_LOG_WARNING("dmem getTotalSize", device->index, argp); - *(std::uint64_t *)argp = device->dmemTotalSize; + *(std::uint64_t *)argp = device->dmemTotalSize / 0x10; return {}; case 0xc0208016: { // get available size