SR 1.6.0: updated checksums, patch address

This commit is contained in:
mkrsym1 2023-12-25 16:16:08 +02:00
parent fa3a3aa9cc
commit c37d0e92f4

View File

@ -9,7 +9,7 @@ const char *HSR_ASSEMBLY_PATH = "GameAssembly.dll";
const char *HSR_TXS_SECTION_NAME = ".ace";
const char *HSR_TVM_SECTION_NAME = ".tvm0";
#define HSR_VERSION "1.5.0"
#define HSR_VERSION "1.6.0"
enum hsr_region {
HSR_INVALID,
@ -23,15 +23,15 @@ struct crc_region_pair {
};
const struct crc_region_pair HSR_REGIONS[] = {
{ 0xb90cbc61, HSR_OS }, // os v1.5.0
{ 0xee3eebfb, HSR_CN } // cn v1.5.0
{ 0x5741ce50, HSR_OS }, // os v1.6.0
{ 0xce891f97, HSR_CN } // cn v1.6.0
};
#define JUMP_SIZE (6 + sizeof(void*))
// Temporarily hardcoded offset
// v1.5.0, same for os and cn
#define WTSUD_PATCH_OFFSET 0x1b800 // 0x16550 will also work
// v1.6.0, same for os and cn
#define WTSUD_PATCH_OFFSET 0x16510
char wtsud_original_bytes[JUMP_SIZE];
char *wtsud_patch_addr;