Disabled Stay at System Page in VR
This commit is contained in:
parent
31868128cf
commit
c93e11b2cc
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
Binary file not shown.
@ -116,15 +116,16 @@ SKSEPluginLoad(const LoadInterface* skse) {
|
||||
|
||||
GetPapyrusInterface()->Register(Papyrus::Bind);
|
||||
|
||||
if (skse->RuntimeVersion() != RUNTIME_VR_1_4_15 && skse->RuntimeVersion() != RUNTIME_LATEST_VR && g_settings.at("FlatMapMarkers")) {
|
||||
logger::info("Initializing Flat Map Markers...");
|
||||
SKSE::AllocTrampoline(1 << 4);
|
||||
FlatMapMarkers::Install();
|
||||
}
|
||||
|
||||
if (g_settings.at("StayAtSystemPage")) {
|
||||
logger::info("Initializing Stay At The System Page...");
|
||||
JournalMenuEx::InstallHooks();
|
||||
if (!IsVR()) {
|
||||
if (g_settings.at("FlatMapMarkers")) {
|
||||
logger::info("Initializing Flat Map Markers...");
|
||||
SKSE::AllocTrampoline(1 << 4);
|
||||
FlatMapMarkers::Install();
|
||||
}
|
||||
if (g_settings.at("StayAtSystemPage")) {
|
||||
logger::info("Initializing Stay At The System Page...");
|
||||
JournalMenuEx::InstallHooks();
|
||||
}
|
||||
}
|
||||
|
||||
logger::info("{} has finished loading.", plugin->GetName());
|
||||
|
@ -28,6 +28,11 @@ inline bool IsSE()
|
||||
return GetLoadInterface()->RuntimeVersion().minor() == 5;
|
||||
}
|
||||
|
||||
inline bool IsVR()
|
||||
{
|
||||
return GetLoadInterface()->RuntimeVersion() == SKSE::RUNTIME_VR_1_4_15 || GetLoadInterface()->RuntimeVersion() == SKSE::RUNTIME_LATEST_VR;
|
||||
}
|
||||
|
||||
inline void SetINISettings()
|
||||
{
|
||||
auto* setting = RE::INIPrefSettingCollection::GetSingleton()->GetSetting("bFreebiesSeen:General");
|
||||
|
Loading…
Reference in New Issue
Block a user