mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-21 19:15:46 +00:00
Applets: Add infrastructure to allow custom drawing and input handling in Applets.
This commit is contained in:
parent
2a6ebadf66
commit
621ee10eae
7 changed files with 162 additions and 39 deletions
|
@ -42,7 +42,7 @@ static inline u8* GetCommandBuffer(u32 thread_id) {
|
|||
return g_shared_memory->GetPointer(0x800 + (thread_id * sizeof(CommandBuffer)));
|
||||
}
|
||||
|
||||
static inline FrameBufferUpdate* GetFrameBufferInfo(u32 thread_id, u32 screen_index) {
|
||||
FrameBufferUpdate* GetFrameBufferInfo(u32 thread_id, u32 screen_index) {
|
||||
DEBUG_ASSERT_MSG(screen_index < 2, "Invalid screen index");
|
||||
|
||||
// For each thread there are two FrameBufferUpdate fields
|
||||
|
@ -205,7 +205,7 @@ static void ReadHWRegs(Service::Interface* self) {
|
|||
}
|
||||
}
|
||||
|
||||
static void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
|
||||
void SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
|
||||
u32 base_address = 0x400000;
|
||||
PAddr phys_address_left = Memory::VirtualToPhysicalAddress(info.address_left);
|
||||
PAddr phys_address_right = Memory::VirtualToPhysicalAddress(info.address_right);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue