From aa9ed91bc811e5fe0ff18b19a7fb98760f94fb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Thu, 16 Feb 2017 20:33:41 +0100 Subject: [PATCH] IOS: Add constants for IOS40 This adds memory constants for IOS40. We should now support every system menu, courtesy of Bent82: https://github.com/dolphin-emu/dolphin/pull/4907#issuecomment-280433023 --- Source/Core/Core/IOS/IPC.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/IOS/IPC.cpp b/Source/Core/Core/IOS/IPC.cpp index 8c5b50d063..2b5c7bebd2 100644 --- a/Source/Core/Core/IOS/IPC.cpp +++ b/Source/Core/Core/IOS/IPC.cpp @@ -161,7 +161,7 @@ constexpr u32 RAM_VENDOR_MIOS = 0xCAFEBABE; // The writes are usually contained in a single function that // mostly writes raw literals to the relevant locations. // e.g. IOS9, version 1034, content id 0x00000006, function at 0xffff6884 -constexpr std::array ios_memory_values = { +constexpr std::array ios_memory_values = { {{ 9, 0x9040a, 0x030110, MEM1_SIZE, MEM1_SIZE, MEM1_END, MEM1_ARENA_BEGIN, MEM1_ARENA_END, @@ -295,7 +295,13 @@ constexpr std::array ios_memory_values = { 0x935E0000, 0x935E0000, 0x93600000, HOLLYWOOD_REVISION, RAM_VENDOR, 0x93600000, 0x93620000, 0, }, - // No functional version of IOS40 is present on NUS. + { + 40, 0x280911, 0x022308, MEM1_SIZE, + MEM1_SIZE, MEM1_END, MEM1_ARENA_BEGIN, MEM1_ARENA_END, + MEM2_SIZE, MEM2_SIZE, 0x93600000, MEM2_ARENA_BEGIN, + 0x935E0000, 0x935E0000, 0x93600000, HOLLYWOOD_REVISION, + RAM_VENDOR, 0x93600000, 0x93620000, 0, + }, { 41, 0x290e17, 0x030110, MEM1_SIZE, MEM1_SIZE, MEM1_END, MEM1_ARENA_BEGIN, MEM1_ARENA_END,