From 15c403b0d19df27cf8f6819affbf3fece630fc96 Mon Sep 17 00:00:00 2001 From: mkrsym1 Date: Wed, 30 Aug 2023 01:05:53 +0300 Subject: [PATCH] Improve invalid checksum error message --- game_payload/src/hsr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game_payload/src/hsr.c b/game_payload/src/hsr.c index be1291e..41c53d1 100644 --- a/game_payload/src/hsr.c +++ b/game_payload/src/hsr.c @@ -9,6 +9,8 @@ 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.3.0" + enum hsr_region { HSR_INVALID, HSR_OS, @@ -86,7 +88,7 @@ void hsr_fill_data(struct game_data *buf) { } if (id == HSR_INVALID) { - msg_err_a("Invalid UnityPlayer.dll checksum: 0x%08x. This usually happens when the patch is outdated", crc); + msg_err_a("Invalid UnityPlayer.dll checksum: 0x%08x. This patch is intended to be used with HSR v" HSR_VERSION, crc); } buf->base_module_name = HSR_BASE_MODULE_NAME;