mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
[APT] Better GetLockHandle stub.
This commit is contained in:
parent
512a7f7bec
commit
182132cbb1
1 changed files with 3 additions and 0 deletions
|
@ -82,7 +82,10 @@ void APTService::enable(u32 messagePointer) {
|
||||||
void APTService::getLockHandle(u32 messagePointer) {
|
void APTService::getLockHandle(u32 messagePointer) {
|
||||||
log("APT::GetLockHandle (Failure)\n");
|
log("APT::GetLockHandle (Failure)\n");
|
||||||
mem.write32(messagePointer + 4, Result::Failure); // Result code
|
mem.write32(messagePointer + 4, Result::Failure); // Result code
|
||||||
|
mem.write32(messagePointer + 8, 0); // AppletAttr
|
||||||
|
mem.write32(messagePointer + 12, 0); // APT State (bit0 = Power Button State, bit1 = Order To Close State)
|
||||||
mem.write32(messagePointer + 16, 0); // Translation descriptor
|
mem.write32(messagePointer + 16, 0); // Translation descriptor
|
||||||
|
mem.write32(messagePointer + 20, 0x34563456); // Lock handle
|
||||||
}
|
}
|
||||||
|
|
||||||
// This apparently does nothing on the original kernel either?
|
// This apparently does nothing on the original kernel either?
|
||||||
|
|
Loading…
Add table
Reference in a new issue