4
Fork 0

Disabled Stay at System Page in VR

master
Eddoursul 2 years ago
parent 31868128cf
commit c93e11b2cc
  1. BIN
      SKSE/Plugins/EnderalSE.dll
  2. 5
      source/Enderal DLL/src/Main.cpp
  3. 5
      source/Enderal DLL/src/Util.h

BIN
SKSE/Plugins/EnderalSE.dll (Stored with Git LFS)

Binary file not shown.

@ -116,16 +116,17 @@ SKSEPluginLoad(const LoadInterface* skse) {
GetPapyrusInterface()->Register(Papyrus::Bind); GetPapyrusInterface()->Register(Papyrus::Bind);
if (skse->RuntimeVersion() != RUNTIME_VR_1_4_15 && skse->RuntimeVersion() != RUNTIME_LATEST_VR && g_settings.at("FlatMapMarkers")) { if (!IsVR()) {
if (g_settings.at("FlatMapMarkers")) {
logger::info("Initializing Flat Map Markers..."); logger::info("Initializing Flat Map Markers...");
SKSE::AllocTrampoline(1 << 4); SKSE::AllocTrampoline(1 << 4);
FlatMapMarkers::Install(); FlatMapMarkers::Install();
} }
if (g_settings.at("StayAtSystemPage")) { if (g_settings.at("StayAtSystemPage")) {
logger::info("Initializing Stay At The System Page..."); logger::info("Initializing Stay At The System Page...");
JournalMenuEx::InstallHooks(); JournalMenuEx::InstallHooks();
} }
}
logger::info("{} has finished loading.", plugin->GetName()); logger::info("{} has finished loading.", plugin->GetName());
return true; return true;

@ -28,6 +28,11 @@ inline bool IsSE()
return GetLoadInterface()->RuntimeVersion().minor() == 5; 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() inline void SetINISettings()
{ {
auto* setting = RE::INIPrefSettingCollection::GetSingleton()->GetSetting("bFreebiesSeen:General"); auto* setting = RE::INIPrefSettingCollection::GetSingleton()->GetSetting("bFreebiesSeen:General");

Loading…
Cancel
Save