提交 7feb2157 编写于 作者: J jp9000

win-capture: Update D3D9 shared texture patches

上级 0c415ee1
...@@ -57,7 +57,7 @@ static const BYTE ignore_jump[] = {0x90, 0x90}; ...@@ -57,7 +57,7 @@ static const BYTE ignore_jump[] = {0x90, 0x90};
#ifdef _WIN64 #ifdef _WIN64
#define NUM_VERS (14) #define NUM_VERS (15)
#define CMP_SIZE (13) #define CMP_SIZE (13)
static const uintptr_t patch_offset[NUM_VERS] = { static const uintptr_t patch_offset[NUM_VERS] = {
...@@ -67,6 +67,7 @@ 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 0x6FE18, //win10 - 10.0.10240.16412
0x70050, //win10 - 10.0.10240.16384 0x70050, //win10 - 10.0.10240.16384
0x703F8, //win10 - 10.0.10162.0 0x703F8, //win10 - 10.0.10162.0
0x7E48C, //win10 - 10.0.10586.494
0x7E49C, //win10 - 10.0.10586.0 0x7E49C, //win10 - 10.0.10586.0
0x8BDB5, //win8.1 - 6.3.9431.00000 0x8BDB5, //win8.1 - 6.3.9431.00000
0x8E635, //win8.1 - 6.3.9600.17415 0x8E635, //win8.1 - 6.3.9600.17415
...@@ -85,6 +86,7 @@ static const uint8_t patch_cmp[NUM_VERS][CMP_SIZE] = { ...@@ -85,6 +86,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, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00},
{0x8b, 0x81, 0x18, 0x3e, 0x00, 0x00, 0x44, 0x39, 0x98, 0x88, 0x51, 0x00, 0x00}, {0x8b, 0x81, 0x18, 0x3e, 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, 0xB0, 0x28, 0x51, 0x00, 0x00},
{0x48, 0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x39, 0xA8, 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}, {0x8b, 0x81, 0xb8, 0x3d, 0x00, 0x00, 0x44, 0x39, 0xA0, 0x28, 0x51, 0x00, 0x00},
...@@ -102,6 +104,7 @@ static const struct patch_info patch[NUM_VERS] = { ...@@ -102,6 +104,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(force_jump), NEW_PATCH(force_jump),
NEW_PATCH(force_jump),
NEW_PATCH(ignore_jump), NEW_PATCH(ignore_jump),
NEW_PATCH(ignore_jump), NEW_PATCH(ignore_jump),
NEW_PATCH(ignore_jump), NEW_PATCH(ignore_jump),
...@@ -113,7 +116,7 @@ static const struct patch_info patch[NUM_VERS] = { ...@@ -113,7 +116,7 @@ static const struct patch_info patch[NUM_VERS] = {
#else #else
#define NUM_VERS (14) #define NUM_VERS (15)
#define CMP_SIZE (12) #define CMP_SIZE (12)
static const uintptr_t patch_offset[NUM_VERS] = { static const uintptr_t patch_offset[NUM_VERS] = {
...@@ -130,6 +133,7 @@ static const uintptr_t patch_offset[NUM_VERS] = { ...@@ -130,6 +133,7 @@ static const uintptr_t patch_offset[NUM_VERS] = {
0x8FBB1, //win8.1 - 6.3.9600.16384 0x8FBB1, //win8.1 - 6.3.9600.16384
0x90264, //win8.1 - 6.3.9600.17415 0x90264, //win8.1 - 6.3.9600.17415
0x90C57, //win10 - 10.0.10586.0 0x90C57, //win10 - 10.0.10586.0
0x90C3A, //win10 - 10.0.10586.494
0x166A08 //win8 - 6.2.9200.16384 0x166A08 //win8 - 6.2.9200.16384
}; };
...@@ -147,6 +151,7 @@ static const uint8_t patch_cmp[NUM_VERS][CMP_SIZE] = { ...@@ -147,6 +151,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}, {0x87, 0xe8, 0x29, 0x00, 0x00, 0x83, 0xb8, 0x40, 0x4c, 0x00, 0x00, 0x00},
{0x81, 0x18, 0x2a, 0x00, 0x00, 0x83, 0xb8, 0xa0, 0x4c, 0x00, 0x00, 0x00}, {0x81, 0x18, 0x2a, 0x00, 0x00, 0x83, 0xb8, 0xa0, 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}, {0x8b, 0x80, 0xe8, 0x29, 0x00, 0x00, 0x39, 0x90, 0xb0, 0x4b, 0x00, 0x00},
}; };
...@@ -164,6 +169,7 @@ static const struct patch_info patch[NUM_VERS] = { ...@@ -164,6 +169,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(ignore_jump), NEW_PATCH(ignore_jump),
NEW_PATCH(ignore_jump),
NEW_PATCH(force_jump), NEW_PATCH(force_jump),
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册