mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-18 03:31:31 +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>();
|
MemoryBlock* memoryBlock = object->getData<MemoryBlock>();
|
||||||
sharedMemory = *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, IPC::responseHeader(0x18, 1, 0));
|
||||||
mem.write32(messagePointer + 4, Result::Success);
|
mem.write32(messagePointer + 4, Result::Success);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue