Add temporary workaround for 3rd 6.9.0
This commit is contained in:
parent
56eefd83d7
commit
671f9ba246
Binary file not shown.
@ -3,16 +3,28 @@
|
|||||||
|
|
||||||
#include <game.h>
|
#include <game.h>
|
||||||
|
|
||||||
|
const char *HI3_TXS_SECTION_NAME_OLD = ".bh3";
|
||||||
|
const char *HI3_TXS_SECTION_NAME_NEW = ".ace";
|
||||||
|
|
||||||
const char *HI3_BASE_MODULE_NAME = "BH3Base.dll";
|
const char *HI3_BASE_MODULE_NAME = "BH3Base.dll";
|
||||||
const char *HI3_ASSEMBLY_PATH = "BH3_Data\\Native\\UserAssembly.dll";
|
const char *HI3_ASSEMBLY_PATH = "BH3_Data\\Native\\UserAssembly.dll";
|
||||||
const char *HI3_TXS_SECTION_NAME = ".bh3";
|
|
||||||
const char *HI3_TVM_SECTION_NAME = ".tvm0";
|
const char *HI3_TVM_SECTION_NAME = ".tvm0";
|
||||||
|
|
||||||
|
|
||||||
void hi3_fill_data(struct game_data *buf) {
|
void hi3_fill_data(struct game_data *buf) {
|
||||||
|
// !!! TEMPORARY WORKAROUND FOR HI3 6.8.0 -> 6.9.0
|
||||||
|
const uint32_t NEW_CHECKSUM = 0x885b4c63;
|
||||||
|
|
||||||
|
uint32_t crc = utils_file_crc32c(L"UnityPlayer.dll");
|
||||||
|
|
||||||
|
if (crc == NEW_CHECKSUM) {
|
||||||
|
buf->txs_section_name = HI3_TXS_SECTION_NAME_NEW;
|
||||||
|
} else {
|
||||||
|
buf->txs_section_name = HI3_TXS_SECTION_NAME_OLD;
|
||||||
|
}
|
||||||
|
|
||||||
buf->base_module_name = HI3_BASE_MODULE_NAME;
|
buf->base_module_name = HI3_BASE_MODULE_NAME;
|
||||||
buf->assembly_path = HI3_ASSEMBLY_PATH;
|
buf->assembly_path = HI3_ASSEMBLY_PATH;
|
||||||
buf->txs_section_name = HI3_TXS_SECTION_NAME;
|
|
||||||
buf->tvm_section_name = HI3_TVM_SECTION_NAME;
|
buf->tvm_section_name = HI3_TVM_SECTION_NAME;
|
||||||
|
|
||||||
buf->unityplayer_callback = NULL;
|
buf->unityplayer_callback = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user