From f53b88a474cb5199dda78feb34ff9bb814d501dc Mon Sep 17 00:00:00 2001 From: Nayla Hanegan Date: Fri, 3 Jan 2025 16:33:47 -0500 Subject: [PATCH] Super extended for mp7 --- Source/Core/Core/GeckoCode.cpp | 10 +++++----- Source/Core/Core/GeckoCode.h | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/GeckoCode.cpp b/Source/Core/Core/GeckoCode.cpp index a0b6bc87c0..b83cbc0ca2 100644 --- a/Source/Core/Core/GeckoCode.cpp +++ b/Source/Core/Core/GeckoCode.cpp @@ -177,8 +177,8 @@ static Installation InstallCodeHandlerLocked(const Core::CPUThreadGuard& guard) const bool is_mpn_handler_and_game_id_rm8e01 = IsGeckoCodeHandlerSUPER() && (SConfig::GetInstance().GetGameID() == "RM8E01"); - //const bool is_mpn_handler_and_game_id_gp7e01 = - // IsGeckoCodeHandlerSUPER() && (SConfig::GetInstance().GetGameID() == "GP7E01"); + const bool is_mpn_handler_and_game_id_gp7e01 = + IsGeckoCodeHandlerSUPER() && (SConfig::GetInstance().GetGameID() == "GP7E01"); const bool is_mpn_handler_and_game_id_gp6e01 = IsGeckoCodeHandlerSUPER() && (SConfig::GetInstance().GetGameID() == "GP6E01"); const bool is_mpn_handler_and_game_id_gp5e01 = @@ -188,7 +188,7 @@ static Installation InstallCodeHandlerLocked(const Core::CPUThreadGuard& guard) u32 codelist_base_address = is_mpn_handler_and_game_id_rm8e01 ? INSTALLER_BASE_ADDRESS_MP8 : - //is_mpn_handler_and_game_id_gp7e01 ? INSTALLER_BASE_ADDRESS_MP7 : + is_mpn_handler_and_game_id_gp7e01 ? INSTALLER_BASE_ADDRESS_MP7 : is_mpn_handler_and_game_id_gp6e01 ? INSTALLER_BASE_ADDRESS_MP6 : is_mpn_handler_and_game_id_gp5e01 ? INSTALLER_BASE_ADDRESS_MP5 : is_mpn_handler_and_game_id_gmpe01 ? INSTALLER_BASE_ADDRESS_MP4 : @@ -196,13 +196,13 @@ static Installation InstallCodeHandlerLocked(const Core::CPUThreadGuard& guard) CODE_SIZE; u32 codelist_end_address = is_mpn_handler_and_game_id_rm8e01 ? INSTALLER_END_ADDRESS_MP8 : - // is_mpn_handler_and_game_id_gp7e01 ? INSTALLER_END_ADDRESS_MP7 : + is_mpn_handler_and_game_id_gp7e01 ? INSTALLER_END_ADDRESS_MP7 : is_mpn_handler_and_game_id_gp6e01 ? INSTALLER_END_ADDRESS_MP6 : is_mpn_handler_and_game_id_gp5e01 ? INSTALLER_END_ADDRESS_MP5 : is_mpn_handler_and_game_id_gmpe01 ? INSTALLER_END_ADDRESS_MP4 : INSTALLER_END_ADDRESS; - if (is_mpn_handler_and_game_id_rm8e01 || // is_mpn_handler_and_game_id_gp7e01 || + if (is_mpn_handler_and_game_id_rm8e01 || is_mpn_handler_and_game_id_gp7e01 || is_mpn_handler_and_game_id_gp6e01 || is_mpn_handler_and_game_id_gp5e01 || is_mpn_handler_and_game_id_gmpe01) { diff --git a/Source/Core/Core/GeckoCode.h b/Source/Core/Core/GeckoCode.h index c0e60fe2f0..0beadcb8ad 100644 --- a/Source/Core/Core/GeckoCode.h +++ b/Source/Core/Core/GeckoCode.h @@ -49,7 +49,7 @@ constexpr u32 INSTALLER_END_ADDRESS = 0x80003000; constexpr u32 INSTALLER_BASE_ADDRESS_MP8 = 0x801D2A90; constexpr u32 INSTALLER_END_ADDRESS_MP8 = 0x801D9FA8; -constexpr u32 INSTALLER_BASE_ADDRESS_MP7 = 0x8025E2A4; +constexpr u32 INSTALLER_BASE_ADDRESS_MP7 = 0x8025E300; constexpr u32 INSTALLER_END_ADDRESS_MP7 = 0x80264438; constexpr u32 INSTALLER_BASE_ADDRESS_MP6 = 0x80232C10;