Merge pull request #1310 from jackchentwkh/uc_fix

Add new rdtsc pattern for Unreal Championship
This commit is contained in:
Luke Usher 2018-07-01 12:00:05 +01:00 committed by GitHub
commit 53f0275d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 4 deletions

View File

@ -705,7 +705,7 @@ void PatchRdtsc(xbaddr addr)
}
const uint8_t rdtsc_pattern[] = {
0x89,//{0x0F,0x31,0x89 },
0x89,//{ 0x0F,0x31,0x89 },
0xC3,//{ 0x0F,0x31,0xC3 },
0x8B,//{ 0x0F,0x31,0x8B }, //one false positive in Sonic Rider .text 88 5C 0F 31
0xB9,//{ 0x0F,0x31,0xB9 },
@ -713,7 +713,7 @@ const uint8_t rdtsc_pattern[] = {
0x8D,//{ 0x0F,0x31,0x8D },
0x68,//{ 0x0F,0x31,0x68 },
0x5A,//{ 0x0F,0x31,0x5A },
0x29,//{ 0x0F,0x31,0x29},
0x29,//{ 0x0F,0x31,0x29 },
0xF3,//{ 0x0F,0x31,0xF3 },
0xE9,//{ 0x0F,0x31,0xE9 },
0x2B,//{ 0x0F,0x31,0x2B },
@ -727,8 +727,14 @@ const uint8_t rdtsc_pattern[] = {
0x83,//{ 0x0F,0x31,0x83 },
0x33,//{ 0x0F,0x31,0x33 },
0xF7,//{ 0x0F,0x31,0xF7 },
0x8A,//{ 0x0F,0x31,0xF7 }, // 8A and 56 only apears in RalliSport 2 .text , need to watch whether any future false positive.
0x56//{ 0x0F,0x31,0xF7 } //
0x8A,//{ 0x0F,0x31,0x8A }, // 8A and 56 only apears in RalliSport 2 .text , need to watch whether any future false positive.
0x56,//{ 0x0F,0x31,0x56 }
0x6A, // 6A, 39, EB, F6, A1, 01 only appear in Unreal Championship, 01 is at WMVDEC section
0x39,
0xEB,
0xF6,
0xA1,
0x01
};
const int sizeof_rdtsc_pattern = sizeof(rdtsc_pattern);