mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-07-14 03:07:08 +12:00
Fix typo (#680)
Co-authored-by: Noumi <139501014+noumidev@users.noreply.github.com>
This commit is contained in:
parent
4ce0768ba1
commit
dc80828397
20 changed files with 456 additions and 107 deletions
|
@ -1,8 +1,10 @@
|
|||
#include "services/gsp_lcd.hpp"
|
||||
|
||||
#include "ipc.hpp"
|
||||
|
||||
namespace LCDCommands {
|
||||
enum : u32 {
|
||||
SetLedForceOff = 0x00130040,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -11,6 +13,16 @@ void LCDService::reset() {}
|
|||
void LCDService::handleSyncRequest(u32 messagePointer) {
|
||||
const u32 command = mem.read32(messagePointer);
|
||||
switch (command) {
|
||||
case LCDCommands::SetLedForceOff: setLedForceOff(messagePointer); break;
|
||||
|
||||
default: Helpers::panic("LCD service requested. Command: %08X\n", command);
|
||||
}
|
||||
}
|
||||
|
||||
void LCDService::setLedForceOff(u32 messagePointer) {
|
||||
const u8 state = mem.read8(messagePointer + 4);
|
||||
log("LCD::SetLedForceOff (state = %X)\n", state);
|
||||
|
||||
mem.write32(messagePointer, IPC::responseHeader(0x13, 1, 0));
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue