File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ asm TryRemoveSmeltedTrinketIdCheck "81fbbe0000000f83";
11
11
asm GreedDonationBreakChanceForModdedCharacters "f30f1005????????59";
12
12
asm GreedDonationCoinCountForModdedCharacters "83f8297d??6a01";
13
13
14
+ asm PlayerItemNoMetronome "81f9e9010000";
15
+
14
16
// CustomCache
15
17
asm FamiliarGetMultiplier "5f5e5b8be55dc3????????????????????558bec83e4f856";
16
18
asm MaxCoins_AddCoins "e8????????f7d8c745??000000008d55??1bc08d4d??2584030000";
Original file line number Diff line number Diff line change 1
1
#include " HookSystem.h"
2
2
#include " IsaacRepentance.h"
3
3
#include " ASMPatcher.hpp"
4
+ #include " ASMDefinition.h"
4
5
#include " SigScan.h"
5
6
#include " XMLData.h"
6
7
@@ -109,13 +110,10 @@ void ASMPatchPlayerItemNoExpansionPack() {
109
110
ASMPatch::SavedRegisters savedRegisters (ASMPatch::SavedRegisters::Registers::GP_REGISTERS_STACKLESS, true );
110
111
ASMPatch patch;
111
112
112
- SigScan patchSignature (" 81f9e9010000" );
113
- patchSignature.Scan ();
114
-
115
- void * patchAddr = patchSignature.GetAddress ();
113
+ void * patchAddr = sASMDefinitionHolder ->GetDefinition (&AsmDefinitions::PlayerItemNoMetronome);
116
114
printf (" [REPENTOGON] Patching Player::TriggerActiveItemUsed for noexpansionpack tag at %p\n " , patchAddr);
117
115
118
- SigScan exitSignature (" 8b45??ff45??8b55??8b88????????8b80????????2bc1c1f8023bd00f82????????8b8f ????????81c1500b0000" );
116
+ SigScan exitSignature (" 8b45??ff45??8b55??8b88????????8b80????????2bc1c1f8023bd00f82????????8b8b ????????81c1500b0000" );
119
117
exitSignature.Scan ();
120
118
void * exitAddr = exitSignature.GetAddress ();
121
119
You can’t perform that action at this time.
0 commit comments