EnderalFunctions.IsVR() returns REL::Module::IsVR() result
This commit is contained in:
parent
6b4395aaf8
commit
017db0cfe8
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user