Skip to content
Open
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
15 changes: 15 additions & 0 deletions MarathonRecomp/patches/player_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,18 @@ bool InfiniteLives()
{
return Config::InfiniteLives;
}

bool AlwaysHoldPhysicsObjects()
{
return Config::AlwaysHoldPhysicsObjects;
}

bool ControllableHomingRecovery()
{
return Config::ControllableHomingRecovery;
}

bool RestoreHomingSpam()
{
return Config::RestoreHomingSpam;
}
5 changes: 4 additions & 1 deletion MarathonRecomp/user/config_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
15 changes: 15 additions & 0 deletions MarathonRecompLib/config/Marathon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading