mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-11-30 06:40:54 +00:00
dmem: do not report main dmem size in get total size
This commit is contained in:
parent
b472f40266
commit
396698d0be
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user