mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-08 12:01:39 +12:00
Make SendSyncRequest warn instead of panic on invalid handles
Some games like Arc Baseball use invalid handles...
This commit is contained in:
parent
2669f80db7
commit
cce796ec0c
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ void Kernel::sendSyncRequest() {
|
||||||
// If we're actually communicating with a port
|
// If we're actually communicating with a port
|
||||||
const auto session = getObject(handle, KernelObjectType::Session);
|
const auto session = getObject(handle, KernelObjectType::Session);
|
||||||
if (session == nullptr) [[unlikely]] {
|
if (session == nullptr) [[unlikely]] {
|
||||||
Helpers::panic("SendSyncRequest: Invalid handle");
|
Helpers::warn("SendSyncRequest: Invalid handle");
|
||||||
regs[0] = Result::Kernel::InvalidHandle;
|
regs[0] = Result::Kernel::InvalidHandle;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue