GameINI: Add 60 FPS code for Pikmin Squared

This commit is contained in:
Martino Fontana 2025-11-07 16:35:47 +01:00
parent 5650be6842
commit 22f0eb8b4e
3 changed files with 38 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,35 @@
# P1RE01 - Pikmin Squared
[OnFrame]
# Add memory patches to be applied every frame here.
[ActionReplay]
# Add action replay cheats here.
[Gecko]
$60 FPS
C242E098 00000004 # Set to 30 FPS when cutscene starts
3C608042 606335A8
7C6903A6 806D9AEC
38800002 4E800421
801F01F0 00000000
C242E1B0 00000004 # Set to 60 FPS when cutscene ends
3C608042 606335A8
7C6903A6 806D9AEC
38800001 4E800421
801F01F0 00000000
0414B758 38800001 # `BaseGameSection::init`, force `setFramerate` argument to 60 FPS (2P mode doesn't start with a cutscene)
04513B9C 40100000 # Map translation speed 1
04513BA0 3F800000 # Map translation speed 2
0451D6F0 3C75C28F # Map scale speed
04514068 3ECCCCCD # Final floor animation
04516080 3F000000 # Pay dept animation
0451FFB8 3EB33333 # Ready-go animation
04411020 388000C8 # Win/Lose reason duration 1
04411028 386000FA # Win/Lose reason duration 2
04520164 3F000000 # Win/Lose animation
04410758 38800078 # Win/Lose duration 1
04410760 38600168 # Win/Lose duration 2
[Gecko_RetroAchievements_Verified]
$60 FPS

View File

@ -90,8 +90,8 @@ public:
static constexpr std::string_view BLUE = "#0B71C1";
static constexpr std::string_view APPROVED_LIST_FILENAME = "ApprovedInis.json";
static const inline Common::SHA1::Digest APPROVED_LIST_HASH = {
0xDF, 0x11, 0xD6, 0xA7, 0x2E, 0x8D, 0x3B, 0x3C, 0x41, 0x22,
0x29, 0x3F, 0x67, 0x40, 0xD9, 0x92, 0xBF, 0xC0, 0x1C, 0x43};
0x1A, 0xCE, 0x59, 0xF9, 0x84, 0x35, 0x97, 0x5B, 0x4A, 0x54,
0xFF, 0x69, 0x00, 0xD7, 0x3C, 0xE2, 0xDD, 0x78, 0x41, 0x62};
struct LeaderboardEntry
{