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;
|
return iResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool IsVR(RE::StaticFunctionTag*)
|
||||||
|
{
|
||||||
|
return REL::Module::IsVR();
|
||||||
|
}
|
||||||
|
|
||||||
inline void Bind(VM& a_vm)
|
inline void Bind(VM& a_vm)
|
||||||
{
|
{
|
||||||
BIND(CreatePotion);
|
BIND(CreatePotion);
|
||||||
@ -194,5 +199,7 @@ namespace Papyrus::PapyrusFunctions
|
|||||||
logger::info("{}", "Registered ComputeNeededExp"sv);
|
logger::info("{}", "Registered ComputeNeededExp"sv);
|
||||||
BIND(MoveItemsToCountByKeyword);
|
BIND(MoveItemsToCountByKeyword);
|
||||||
logger::info("{}", "Registered MoveItemsToCountByKeyword"sv);
|
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()
|
return (AffinityQuest.GetAlias(0) as _00E_AffinityControl).GetPlayerClassName()
|
||||||
endfunction
|
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
|
bool function TextInputEnabled() global
|
||||||
return SKSE.GetVersion() && ! Game.UsingGamepad() && ! IsVR()
|
return SKSE.GetVersion() && ! Game.UsingGamepad() && ! IsVR()
|
||||||
endfunction
|
endfunction
|
||||||
@ -50,3 +45,5 @@ endfunction
|
|||||||
bool function VideoSupport() global
|
bool function VideoSupport() global
|
||||||
return Debug.GetPlatformName() != "Orbis" && ! IsVR()
|
return Debug.GetPlatformName() != "Orbis" && ! IsVR()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
bool function IsVR() native global
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user