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. 19
      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,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…
Cancel
Save