Make unknown memory operations warn instead of panic

This commit is contained in:
wheremyfoodat
2023-07-04 01:39:46 +03:00
committed by GitHub
parent 829ff6a123
commit 8b0a3e372e

View File

@@ -87,7 +87,7 @@ void Kernel::controlMemory() {
Helpers::warn("Ignoring mprotect! Hope nothing goes wrong but if the game accesses invalid memory or crashes then we prolly need to implement this\n");
break;
default: Helpers::panic("ControlMemory: unknown operation %X\n", operation);
default: Helpers::warn("ControlMemory: unknown operation %X\n", operation); break;
}
regs[0] = Result::Success;
@@ -201,4 +201,4 @@ void Kernel::createMemoryBlock() {
regs[0] = Result::Success;
regs[1] = makeMemoryBlock(addr, size, myPermission, otherPermission);
}
}