mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 12:10:59 +12:00
[APT] Some hacks
This commit is contained in:
parent
3ce9dc1d7b
commit
400db8ef0a
2 changed files with 7 additions and 3 deletions
|
@ -104,9 +104,12 @@ void APTService::initialize(u32 messagePointer) {
|
|||
}
|
||||
|
||||
void APTService::inquireNotification(u32 messagePointer) {
|
||||
log("APT::InquireNotification\n");
|
||||
log("APT::InquireNotification (STUBBED TO FAIL)\n");
|
||||
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
// Thanks to our silly WaitSynchronization hacks, sometimes games will switch to the APT thread without actually getting a notif
|
||||
// After REing the APT code, I figured that making InquireNotification fail is one way of making games not crash when this happens
|
||||
// We should fix this in the future, when the sync object implementation is less hacky.
|
||||
mem.write32(messagePointer + 4, Result::Failure);
|
||||
mem.write32(messagePointer + 8, static_cast<u32>(NotificationType::None));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue