summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2017-07-05 21:01:31 +0200
committerGitHub <noreply@github.com>2017-07-05 21:01:31 +0200
commit421a2c57761d4f51f8bcaf866e17a8c8b38b4cd2 (patch)
treed71cad81f7f83d2bac3492e624be47dacfd44b9f /Source/Core
parent24f05f14f2760f2ca5b592a8d9b0da022f9bc45a (diff)
parentf7017b2992cd262336f27d633bb2d4e936c98f98 (diff)
Merge pull request #5750 from AwesomeMarioFan/master
IOS: Add IOS4v3 Constants
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/IOS/MemoryValues.cpp11
-rw-r--r--Source/Core/Core/IOS/MemoryValues.h2
2 files changed, 10 insertions, 3 deletions
diff --git a/Source/Core/Core/IOS/MemoryValues.cpp b/Source/Core/Core/IOS/MemoryValues.cpp
index 1fe60dfd29..ec05088df5 100644
--- a/Source/Core/Core/IOS/MemoryValues.cpp
+++ b/Source/Core/Core/IOS/MemoryValues.cpp
@@ -27,8 +27,15 @@ 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<MemoryValues, 40> ios_memory_values = {
+constexpr std::array<MemoryValues, 41> ios_memory_values = {
{{
+ 4, 0x40003, 0x81006, MEM1_SIZE,
+ MEM1_SIZE, MEM1_END, MEM1_ARENA_BEGIN, MEM1_ARENA_END,
+ MEM2_SIZE, MEM2_SIZE, 0x93400000, MEM2_ARENA_BEGIN,
+ 0x933E0000, 0x933E0000, 0x93400000, HOLLYWOOD_REVISION,
+ RAM_VENDOR, PLACEHOLDER, PLACEHOLDER, 0,
+ },
+ {
9, 0x9040a, 0x030110, MEM1_SIZE,
MEM1_SIZE, MEM1_END, MEM1_ARENA_BEGIN, MEM1_ARENA_END,
MEM2_SIZE, MEM2_SIZE, 0x93400000, MEM2_ARENA_BEGIN,
@@ -324,7 +331,7 @@ constexpr std::array<MemoryValues, 40> ios_memory_values = {
PLACEHOLDER,
}}};
-const std::array<MemoryValues, 40>& GetMemoryValues()
+const std::array<MemoryValues, 41>& GetMemoryValues()
{
return ios_memory_values;
}
diff --git a/Source/Core/Core/IOS/MemoryValues.h b/Source/Core/Core/IOS/MemoryValues.h
index f2478a9d8a..d04dedd9c5 100644
--- a/Source/Core/Core/IOS/MemoryValues.h
+++ b/Source/Core/Core/IOS/MemoryValues.h
@@ -36,6 +36,6 @@ struct MemoryValues
u32 sysmenu_sync;
};
-const std::array<MemoryValues, 40>& GetMemoryValues();
+const std::array<MemoryValues, 41>& GetMemoryValues();
}
}