-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- can disable UPNP/NAT-PMP auto port forwarding by creating text file "disable_upnp.txt" next to openspy dll - add preliminary crysis2 support (untested)
- Loading branch information
Showing
5 changed files
with
55 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// game_cry2.h | ||
|
||
#ifndef __GAME_CRY2_H | ||
#define __GAME_CRY2_H | ||
|
||
#include "include/global.h" | ||
|
||
// Disable HTTPS | ||
__forceinline static void cry2_disable_https() { | ||
BYTE* ptr = 0; | ||
BYTE search[] = {0xC7,0x46,0x28,0x01,0x00,0x00,0x00,0x83,0xC3,0x08}; | ||
|
||
ptr = find_pattern_mem(0, search, search + 9, TRUE); | ||
if (ptr) | ||
write_mem(ptr+3, "\0", 1); | ||
} | ||
|
||
__noinline static void patch_cry2() { | ||
cry2_disable_https(); | ||
gs_replace_pubkey(0); | ||
} | ||
|
||
#endif // __GAME_CRY2_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters