EnderalFunctions.IsVR() returns REL::Module::IsVR() result

This commit is contained in:
Eddoursul 2026-01-24 22:51:51 +01:00
parent 6b4395aaf8
commit 017db0cfe8
3 changed files with 9 additions and 5 deletions

Binary file not shown.

View File

@ -170,6 +170,11 @@ namespace Papyrus::PapyrusFunctions
return iResult;
}
inline bool IsVR(RE::StaticFunctionTag*)
{
return REL::Module::IsVR();
}
inline void Bind(VM& a_vm)
{
BIND(CreatePotion);
@ -194,5 +199,7 @@ namespace Papyrus::PapyrusFunctions
logger::info("{}", "Registered ComputeNeededExp"sv);
BIND(MoveItemsToCountByKeyword);
logger::info("{}", "Registered MoveItemsToCountByKeyword"sv);
BIND(IsVR);
logger::info("{}", "Registered IsVR"sv);
}
}

View File

@ -38,11 +38,6 @@ String Function GetPlayerClassNameGlobal() global
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
endfunction
bool function IsVR() global
; Current VR build 2.0.12 (game version 1.4.15)
return SKSE.GetVersionRelease() == 60
endfunction
bool function TextInputEnabled() global
return SKSE.GetVersion() && ! Game.UsingGamepad() && ! IsVR()
endfunction
@ -50,3 +45,5 @@ endfunction
bool function VideoSupport() global
return Debug.GetPlatformName() != "Orbis" && ! IsVR()
endfunction
bool function IsVR() native global