Enforce bFreebiesSeen, bUpsellOwned, bModManagerMenuEnabled with DLL
This commit is contained in:
parent
13635df9f8
commit
98e9f0c5c7
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
Binary file not shown.
@ -60,6 +60,13 @@ namespace {
|
||||
MapMarkerPlacement::Install();
|
||||
}
|
||||
} else if (message->type == MessagingInterface::kDataLoaded) {
|
||||
if (GetLoadInterface()->RuntimeVersion().minor() > 5) {
|
||||
RE::INIPrefSettingCollection::GetSingleton()->GetSetting("bFreebiesSeen:General")->data.b = true;
|
||||
if (GetLoadInterface()->RuntimeVersion().minor() > 6 || GetLoadInterface()->RuntimeVersion().patch() >= 1130) {
|
||||
RE::INIPrefSettingCollection::GetSingleton()->GetSetting("bUpsellOwned:General")->data.b = true;
|
||||
}
|
||||
}
|
||||
|
||||
const auto dataHandler = RE::TESDataHandler::GetSingleton();
|
||||
if (dataHandler) {
|
||||
if (!dataHandler->LookupLoadedModByName("Update.esm")) {
|
||||
@ -111,7 +118,6 @@ namespace {
|
||||
}
|
||||
|
||||
SKSEPluginLoad(const LoadInterface* skse) {
|
||||
|
||||
std::string filenames[4] = {
|
||||
"fs.dll",
|
||||
"fs_se.dll",
|
||||
@ -155,9 +161,8 @@ SKSEPluginLoad(const LoadInterface* skse) {
|
||||
Init(skse);
|
||||
InitializeMessaging();
|
||||
|
||||
auto setting = RE::INISettingCollection::GetSingleton()->GetSetting("sIntroSequence:General");
|
||||
setting->data.s = nullptr;
|
||||
RE::INISettingCollection::GetSingleton()->WriteSetting(setting);
|
||||
RE::INISettingCollection::GetSingleton()->GetSetting("sIntroSequence:General")->data.s = nullptr;
|
||||
RE::INISettingCollection::GetSingleton()->GetSetting("bModManagerMenuEnabled:General")->data.b = false;
|
||||
|
||||
EventListener::Install();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user