diff --git a/MarathonRecomp/patches/player_patches.cpp b/MarathonRecomp/patches/player_patches.cpp index 1c69458d..3ab8d1fa 100644 --- a/MarathonRecomp/patches/player_patches.cpp +++ b/MarathonRecomp/patches/player_patches.cpp @@ -523,3 +523,18 @@ bool InfiniteLives() { return Config::InfiniteLives; } + +bool AlwaysHoldPhysicsObjects() +{ + return Config::AlwaysHoldPhysicsObjects; +} + +bool ControllableHomingRecovery() +{ + return Config::ControllableHomingRecovery; +} + +bool RestoreHomingSpam() +{ + return Config::RestoreHomingSpam; +} \ No newline at end of file diff --git a/MarathonRecomp/user/config_def.h b/MarathonRecomp/user/config_def.h index 2b2412c0..5b6a97f1 100644 --- a/MarathonRecomp/user/config_def.h +++ b/MarathonRecomp/user/config_def.h @@ -100,5 +100,8 @@ CONFIG_DEFINE_HIDDEN("Codes", bool, SkipIntroLogos, false, false); CONFIG_DEFINE_HIDDEN("Codes", bool, TailsGauge, false, false); CONFIG_DEFINE_HIDDEN("Codes", bool, UnlimitedAntigravity, false, false); CONFIG_DEFINE_HIDDEN("Codes", bool, UseOfficialTitleOnTitleBar, false, true); +CONFIG_DEFINE_HIDDEN("Codes", bool, AlwaysHoldPhysicsObjects, false, false); +CONFIG_DEFINE_HIDDEN("Codes", bool, ControllableHomingRecovery, false, false); +CONFIG_DEFINE_HIDDEN("Codes", bool, RestoreHomingSpam, false, false) -CONFIG_DEFINE("Update", time_t, LastChecked, 0, false); +CONFIG_DEFINE("Update", time_t, LastChecked, 0, false); \ No newline at end of file diff --git a/MarathonRecompLib/config/Marathon.toml b/MarathonRecompLib/config/Marathon.toml index bbba1683..af73421e 100644 --- a/MarathonRecompLib/config/Marathon.toml +++ b/MarathonRecompLib/config/Marathon.toml @@ -725,3 +725,18 @@ jump_address_on_true = 0x8226AB70 name = "InfiniteLives" address = 0x821857B0 jump_address_on_true = 0x821857B4 + +[[midasm_hook]] +name = "AlwaysHoldPhysicsObjects" +address = 0x8221ACBC +jump_address_on_true = 0x8221ACC0 + +[[midasm_hook]] +name = "ControllableHomingRecovery" +address = 0x82217600 +jump_address_on_true = 0x82217618 + +[[midasm_hook]] +name = "RestoreHomingSpam" +address = 0x822175D8 +jump_address_on_true = 0x822175E4 \ No newline at end of file