mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
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:
parent
fd518f8e3f
commit
2acba2b81f
3 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue