Make unknown memory operations warn instead of panic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user