Skip to content

Commit 036a8b7

Browse files
committed
InfiniteLives
Signed-off-by: Isaac Marovitz <isaacryu@icloud.com>
1 parent 8604878 commit 036a8b7

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,3 +465,7 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
465465
}
466466
}
467467
}
468+
469+
bool InfiniteLives() {
470+
return Config::InfiniteLives;
471+
}

MarathonRecomp/user/config_def.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
9797
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false);
9898
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableBoundAttack, false);
9999
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableSpinkick, false);
100+
CONFIG_DEFINE_HIDDEN("Codes", bool, InfiniteLives, false);
100101

101102
CONFIG_DEFINE("Update", time_t, LastChecked, 0);

MarathonRecompLib/config/Marathon.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -575,3 +575,8 @@ registers = ["r29"]
575575
name = "SonicGaugeRestorationGaugeGemSpriteResetFix"
576576
address = 0x82177DFC
577577
registers = ["r31"]
578+
579+
[[midasm_hook]]
580+
name = "InfiniteLives"
581+
address = 0x821857B0
582+
jump_address_on_true = 0x821857B4

0 commit comments

Comments
 (0)