Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MarathonRecomp/patches/player_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,3 +465,8 @@ void SonicGaugeRestorationGaugeFlagFix(PPCRegister& r_gauge, PPCRegister& r_cont
}
}
}

bool InfiniteLives()
{
return Config::InfiniteLives;
}
1 change: 1 addition & 0 deletions MarathonRecomp/user/config_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,6 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, MidairControlForSnowboards, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableTeleportDash, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableBoundAttack, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableSpinkick, false);
CONFIG_DEFINE_HIDDEN("Codes", bool, InfiniteLives, false);

CONFIG_DEFINE("Update", time_t, LastChecked, 0);
5 changes: 5 additions & 0 deletions MarathonRecompLib/config/Marathon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -575,3 +575,8 @@ registers = ["r29"]
name = "SonicGaugeRestorationGaugeGemSpriteResetFix"
address = 0x82177DFC
registers = ["r31"]

[[midasm_hook]]
name = "InfiniteLives"
address = 0x821857B0
jump_address_on_true = 0x821857B4
Loading