mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Make HID::GetIPCHandles fail to skip hidInit
This commit is contained in:
parent
340e0c9266
commit
083a0d04d7
3 changed files with 14 additions and 3 deletions
|
@ -2,13 +2,14 @@
|
|||
|
||||
namespace HIDCommands {
|
||||
enum : u32 {
|
||||
|
||||
GetIPCHandles = 0x000A0000
|
||||
};
|
||||
}
|
||||
|
||||
namespace Result {
|
||||
enum : u32 {
|
||||
Success = 0,
|
||||
Failure = 0xFFFFFFFF
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -17,6 +18,13 @@ void HIDService::reset() {}
|
|||
void HIDService::handleSyncRequest(u32 messagePointer) {
|
||||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case HIDCommands::GetIPCHandles: getIPCHandles(messagePointer); break;
|
||||
default: Helpers::panic("HID service requested. Command: %08X\n", command);
|
||||
}
|
||||
}
|
||||
|
||||
void HIDService::getIPCHandles(u32 messagePointer) {
|
||||
printf("HID: getIPCHandles (Failure)\n");
|
||||
mem.write32(messagePointer + 4, Result::Failure); // Result code
|
||||
mem.write32(messagePointer + 8, 0x14000000); // Translation descriptor
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue