mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-09 15:45:40 +12:00
[IR] Fix initialized byte
This commit is contained in:
parent
af8661a249
commit
58db16540b
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ void IRUserService::initializeIrnopShared(u32 messagePointer) {
|
|||
MemoryBlock* memoryBlock = object->getData<MemoryBlock>();
|
||||
sharedMemory = *memoryBlock;
|
||||
|
||||
// Set the initialized byte in shared mem to 1
|
||||
mem.write8(memoryBlock->addr + offsetof(SharedMemoryStatus, isInitialized), 1);
|
||||
|
||||
mem.write32(messagePointer, IPC::responseHeader(0x18, 1, 0));
|
||||
mem.write32(messagePointer + 4, Result::Success);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue