Core: Improve APT Shared Font hack
Should fix invalid read loops in some games
This commit is contained in:
parent
32e279c0ca
commit
687d973980
3 changed files with 29 additions and 4 deletions
|
@ -78,8 +78,8 @@ void GetSharedFont(Service::Interface* self) {
|
|||
if (shared_font != nullptr) {
|
||||
// TODO(yuriks): This is a hack to keep this working right now even with our completely
|
||||
// broken shared memory system.
|
||||
shared_font_mem->base_address = SHARED_FONT_VADDR;
|
||||
Kernel::g_current_process->vm_manager.MapMemoryBlock(shared_font_mem->base_address,
|
||||
shared_font_mem->fixed_address = SHARED_FONT_VADDR;
|
||||
Kernel::g_current_process->vm_manager.MapMemoryBlock(shared_font_mem->fixed_address,
|
||||
shared_font, 0, shared_font_mem->size, Kernel::MemoryState::Shared);
|
||||
|
||||
cmd_buff[0] = IPC::MakeHeader(0x44, 2, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue