mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: use GetEnvironmentVariableW instead of getenv
This commit is contained in:
parent
04bf21af78
commit
ca1f5baee4
1 changed files with 2 additions and 1 deletions
|
|
@ -74,7 +74,8 @@ DllExport DWORD WINAPI Initialize(LPVOID lpParam)
|
|||
// ============================== VEH ======================================== //
|
||||
|
||||
printf("Initializing VEH... ");
|
||||
if(is_running_on_linux() || getenv("DALAMUD_NO_VEH"))
|
||||
GetEnvironmentVariableW(L"DALAMUD_NO_VEH", nullptr, 0);
|
||||
if(is_running_on_linux() || GetLastError() != ERROR_ENVVAR_NOT_FOUND)
|
||||
{
|
||||
printf("VEH was disabled manually!\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue