win-capture: Add new game capture patches
parent
fa2311bc4a
commit
7634d1099c
|
@ -57,7 +57,7 @@ static const BYTE ignore_jump[] = {0x90, 0x90};
|
|||
|
||||
#ifdef _WIN64
|
||||
|
||||
#define NUM_VERS (13)
|
||||
#define NUM_VERS (14)
|
||||
#define CMP_SIZE (13)
|
||||
|
||||
static const uintptr_t patch_offset[NUM_VERS] = {
|
||||
|
@ -67,6 +67,7 @@ static const uintptr_t patch_offset[NUM_VERS] = {
|
|||
0x6FE18, //win10 - 10.0.10240.16412
|
||||
0x70050, //win10 - 10.0.10240.16384
|
||||
0x703F8, //win10 - 10.0.10162.0
|
||||
0x7E49C, //win10 - 10.0.10586.0
|
||||
0x8BDB5, //win8.1 - 6.3.9431.00000
|
||||
0x8E635, //win8.1 - 6.3.9600.17415
|
||||
0x90352, //win8.1 - 6.3.9600.17085
|
||||
|
@ -83,6 +84,7 @@ static const uint8_t patch_cmp[NUM_VERS][CMP_SIZE] = {
|
|||
{0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00},
|
||||
{0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00},
|
||||
{0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00},
|
||||
{0x8b, 0x81, 0x18, 0x3e, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00},
|
||||
{0x48, 0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x39, 0xB0, 0x28, 0x51, 0x00, 0x00},
|
||||
{0x48, 0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x39, 0xA8, 0x28, 0x51, 0x00, 0x00},
|
||||
{0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0xA0, 0x28, 0x51, 0x00, 0x00},
|
||||
|
@ -99,6 +101,7 @@ static const struct patch_info patch[NUM_VERS] = {
|
|||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(ignore_jump),
|
||||
NEW_PATCH(ignore_jump),
|
||||
NEW_PATCH(ignore_jump),
|
||||
|
@ -110,7 +113,7 @@ static const struct patch_info patch[NUM_VERS] = {
|
|||
|
||||
#else
|
||||
|
||||
#define NUM_VERS (13)
|
||||
#define NUM_VERS (14)
|
||||
#define CMP_SIZE (12)
|
||||
|
||||
static const uintptr_t patch_offset[NUM_VERS] = {
|
||||
|
@ -126,6 +129,7 @@ static const uintptr_t patch_offset[NUM_VERS] = {
|
|||
0x8F00F, //win8.1 - 6.3.9600.17085
|
||||
0x8FBB1, //win8.1 - 6.3.9600.16384
|
||||
0x90264, //win8.1 - 6.3.9600.17415
|
||||
0x90C57, //win10 - 10.0.10586.0
|
||||
0x166A08 //win8 - 6.2.9200.16384
|
||||
};
|
||||
|
||||
|
@ -142,6 +146,7 @@ static const uint8_t patch_cmp[NUM_VERS][CMP_SIZE] = {
|
|||
{0x80, 0xe8, 0x29, 0x00, 0x00, 0x83, 0xb8, 0x40, 0x4c, 0x00, 0x00, 0x00},
|
||||
{0x80, 0xe8, 0x29, 0x00, 0x00, 0x83, 0xb8, 0x40, 0x4c, 0x00, 0x00, 0x00},
|
||||
{0x87, 0xe8, 0x29, 0x00, 0x00, 0x83, 0xb8, 0x40, 0x4c, 0x00, 0x00, 0x00},
|
||||
{0x81, 0x18, 0x2a, 0x00, 0x00, 0x83, 0xb8, 0xa0, 0x4c, 0x00, 0x00, 0x00},
|
||||
{0x8b, 0x80, 0xe8, 0x29, 0x00, 0x00, 0x39, 0x90, 0xb0, 0x4b, 0x00, 0x00},
|
||||
};
|
||||
|
||||
|
@ -158,6 +163,7 @@ static const struct patch_info patch[NUM_VERS] = {
|
|||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(force_jump),
|
||||
NEW_PATCH(ignore_jump),
|
||||
NEW_PATCH(ignore_jump),
|
||||
NEW_PATCH(force_jump),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue