mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
chore: turn VEH back on for everyone
This commit is contained in:
parent
687a8d6f60
commit
ffaf0febb3
1 changed files with 4 additions and 4 deletions
|
|
@ -33,20 +33,20 @@ bool is_running_on_linux()
|
|||
bool is_veh_enabled()
|
||||
{
|
||||
size_t required_size;
|
||||
getenv_s(&required_size, nullptr, 0, "DALAMUD_IS_STAGING");
|
||||
getenv_s(&required_size, nullptr, 0, "DALAMUD_NO_VEH");
|
||||
if (required_size > 0)
|
||||
{
|
||||
if (char* is_no_veh = static_cast<char*>(malloc(required_size * sizeof(char))))
|
||||
{
|
||||
getenv_s(&required_size, is_no_veh, required_size, "DALAMUD_IS_STAGING");
|
||||
getenv_s(&required_size, is_no_veh, required_size, "DALAMUD_NO_VEH");
|
||||
auto result = _stricmp(is_no_veh, "true");
|
||||
free(is_no_veh);
|
||||
if (result == 0)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
DllExport DWORD WINAPI Initialize(LPVOID lpParam)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue