Moved experimental crash fixes to a subdirectory

This commit is contained in:
Eddoursul 2026-01-27 05:52:12 +01:00
parent 13ff172e61
commit 7a6d154d3e
4 changed files with 7 additions and 6 deletions

View File

@ -9,3 +9,4 @@ AttachLightHitEffectCrashFix = true
AutoScaleHeroMenu = true
WarnFormTypeCollisions = true
GogVramLeakFix = true
ExperimentalCrashFixes = false

View File

@ -16,8 +16,8 @@
#include "Patches/PluginsTxtPatch.h"
#include "Patches/FormTypeCollisionDetector.h"
#include "Patches/GogVramLeakFix.h"
#include "Patches/CrosshairPickDataCrashFix.h"
#include "Patches/MovementPathFollowerCrashFix.h"
#include "CrashFixes/CrosshairPickDataCrashFix.h"
#include "CrashFixes/MovementPathFollowerCrashFix.h"
using namespace SKSE;
@ -33,7 +33,7 @@ static std::map<std::string, bool> g_settings{
{ "AttachLightHitEffectCrashFix", true },
{ "AutoScaleHeroMenu", true },
{ "GogVramLeakFix", true },
{ "CrosshairPickDataCrashFix", true }
{ "ExperimentalCrashFixes", false }
};
namespace {
@ -83,12 +83,12 @@ namespace {
logger::info("Installing light attach crash fix...");
AttachLightHitEffectCrash::Install();
}
if (g_settings.at("CrosshairPickDataCrashFix")) {
if (g_settings.at("ExperimentalCrashFixes")) {
logger::info("Installing crosshair pick data crash fix...");
CrosshairPickDataCrashFix::Install();
logger::info("Installing movement path follower crash fix...");
MovementPathFollowerCrashFix::Install();
}
logger::info("Installing movement path follower crash fix...");
MovementPathFollowerCrashFix::Install();
if (g_settings.at("StayAtSystemPage")) {
if (const auto pluginInfo = GetLoadInterface()->GetPluginInfo("StayAtSystemPage"); pluginInfo) {
MessageBoxW(NULL, L"Stay At The System Page is already included in Enderal, please, disable it.", L"Enderal SE Error", MB_OK | MB_ICONERROR);