Disabled Stay at System Page in VR

This commit is contained in:
Eddoursul 2022-09-08 00:58:18 +02:00
parent 31868128cf
commit c93e11b2cc
3 changed files with 16 additions and 10 deletions

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

Binary file not shown.

View File

@ -116,15 +116,16 @@ 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()) {
logger::info("Initializing Flat Map Markers..."); if (g_settings.at("FlatMapMarkers")) {
SKSE::AllocTrampoline(1 << 4); logger::info("Initializing Flat Map Markers...");
FlatMapMarkers::Install(); SKSE::AllocTrampoline(1 << 4);
} 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());

View File

@ -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");