Don't check CRT version on wine

This commit is contained in:
goaaats 2025-08-10 17:38:19 +02:00
parent 4eb49fd449
commit 6c1e538da5

View file

@ -14,6 +14,11 @@ HMODULE g_hModule;
HINSTANCE g_hGameInstance = GetModuleHandleW(nullptr); HINSTANCE g_hGameInstance = GetModuleHandleW(nullptr);
void CheckMsvcrtVersion() { void CheckMsvcrtVersion() {
if (utils::is_running_on_wine()) {
logging::I("Running on Wine, skipping MSVCRT version check.");
return;
}
constexpr WORD RequiredMsvcrtVersionComponents[] = {14, 40, 33816, 0}; constexpr WORD RequiredMsvcrtVersionComponents[] = {14, 40, 33816, 0};
constexpr auto RequiredMsvcrtVersion = 0ULL constexpr auto RequiredMsvcrtVersion = 0ULL
| (static_cast<uint64_t>(RequiredMsvcrtVersionComponents[0]) << 48) | (static_cast<uint64_t>(RequiredMsvcrtVersionComponents[0]) << 48)