Update Dalamud.Boot to use extra import checks

- Ports extra import checks to Dalamud Boot
- Renames is_running_on_linux to is_running_on_wine
- Update relevant logging string for VEH
This commit is contained in:
Kaz Wolfe 2023-09-12 17:06:22 -07:00
parent fd518f8e3f
commit 2acba2b81f
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
3 changed files with 8 additions and 4 deletions

View file

@ -578,7 +578,7 @@ std::vector<std::string> utils::get_env_list(const wchar_t* pcszName) {
return res;
}
bool utils::is_running_on_linux() {
bool utils::is_running_on_wine() {
if (get_env<bool>(L"XL_WINEONLINUX"))
return true;
HMODULE hntdll = GetModuleHandleW(L"ntdll.dll");
@ -588,6 +588,10 @@ bool utils::is_running_on_linux() {
return true;
if (GetProcAddress(hntdll, "wine_get_host_version"))
return true;
if (GetProcAddress(hntdll, "wine_server_call"))
return true;
if (GetProcAddress(hntdll, "wine_unix_to_nt_file_name"))
return true;
return false;
}