Skip to content

Commit 985b6f6

Browse files
committed
Tell the client that the user is always over 18, fixes missing blood effects
1 parent dd1c5e5 commit 985b6f6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

launcher/source/hooks/engine.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,21 @@ void BytePatchEngine( const uintptr_t dwEngineBase )
115115
// stops the weird blinking when you login,
116116
// but you don't get any client hash in the master server
117117
//
118+
// nops
118119
const std::array<uint8_t, 11> hashGenPatch = {
119120
0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90,
120121
};
121122
WriteProtectedMemory( hashGenPatch, ( dwEngineBase + 0x2BC50D ) );
123+
124+
//
125+
// always return true when checking if the user is over 18
126+
//
127+
// mov al, 01
128+
// ret
129+
const std::array<uint8_t, 11> isAdultPatch = {
130+
0xB0, 0x01, 0xC3
131+
};
132+
WriteProtectedMemory( isAdultPatch, ( dwEngineBase + 0x288FF0 ) );
122133
}
123134

124135
extern DWORD WINAPI ConsoleThread( LPVOID lpArguments );

0 commit comments

Comments
 (0)