mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
chore: only enable VEH on staging
This commit is contained in:
parent
f2b605c9bf
commit
b612711ef6
1 changed files with 2 additions and 2 deletions
|
|
@ -33,12 +33,12 @@ bool is_running_on_linux()
|
|||
bool is_veh_enabled()
|
||||
{
|
||||
size_t required_size;
|
||||
getenv_s(&required_size, nullptr, 0, "DALAMUD_HAVE_VEH");
|
||||
getenv_s(&required_size, nullptr, 0, "DALAMUD_IS_STAGING");
|
||||
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_HAVE_VEH");
|
||||
getenv_s(&required_size, is_no_veh, required_size, "DALAMUD_IS_STAGING");
|
||||
auto result = _stricmp(is_no_veh, "true");
|
||||
free(is_no_veh);
|
||||
if (result == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue