Implement utils_file_exists, use wide strings for paths

This commit is contained in:
mkrsym1
2023-08-04 21:09:16 +03:00
parent 4911f8d903
commit 592ce62e6b
4 changed files with 12 additions and 7 deletions

View File

@ -70,7 +70,7 @@ static void _unityplayer_callback(HMODULE unityModule) {
}
void hsr_fill_data(struct game_data *buf) {
uint32_t crc = utils_file_crc32c("UnityPlayer.dll");
uint32_t crc = utils_file_crc32c(L"UnityPlayer.dll");
enum game_id id = GAME_INVALID;
for (size_t i = 0; i < sizeof(HSR_REGIONS) / sizeof(struct crc_id_pair); i++) {