From 5fc3db6a05fad5f45aee47390ee255e3f0a7a6d6 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Fri, 30 Sep 2022 13:46:36 +0200 Subject: [PATCH] Check for leftover DLLs from previous versions of Enderal --- Enderal SE v2.0.12.4 Changelog.txt | 2 +- SKSE/Plugins/EnderalSE.dll | 4 ++-- source/Enderal DLL/src/Main.cpp | 13 +++++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Enderal SE v2.0.12.4 Changelog.txt b/Enderal SE v2.0.12.4 Changelog.txt index 98503c3f..bfff1218 100644 --- a/Enderal SE v2.0.12.4 Changelog.txt +++ b/Enderal SE v2.0.12.4 Changelog.txt @@ -9,7 +9,7 @@ Beware, spoilers ahead! 2.0.12.4 (2022-09-30) - Skyrim SE 1.6.640 (Steam) and 1.6.659 (GOG) support. - Fixed the dialog quit popup appearing in non-locked conversations. -- Fixed swapped objectives in Call of the Hunt. +- Making a Wolf Blood in Call of the Hunt led to the objective to drink Chymikum, and vice versa. 2.0.12.3 (2022-09-16) diff --git a/SKSE/Plugins/EnderalSE.dll b/SKSE/Plugins/EnderalSE.dll index f64ce0b4..322381a1 100644 --- a/SKSE/Plugins/EnderalSE.dll +++ b/SKSE/Plugins/EnderalSE.dll @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:a9eb6775df611ed2a93e666066dc5bba1f3f44ac16d23f296f6072b9361050bb -size 736768 +oid sha256:82ba7402253520095db4ee25e1f07759b0cc0913465293ec5a9d45029a00e8bb +size 738304 diff --git a/source/Enderal DLL/src/Main.cpp b/source/Enderal DLL/src/Main.cpp index ded82dee..29303b84 100644 --- a/source/Enderal DLL/src/Main.cpp +++ b/source/Enderal DLL/src/Main.cpp @@ -102,6 +102,19 @@ namespace { SKSEPluginLoad(const LoadInterface* skse) { + std::string filenames[4] = { + "fs.dll", + "fs_se.dll", + "fs_skse_functions.dll", + "FlatMapMarkersEnderal.dll" + }; + for (int i = 0; i < 4; i++) { + if (std::filesystem::exists(std::format("Data\\SKSE\\Plugins\\{}", filenames[i]))) { + MessageBoxA(NULL, std::format("Found a leftover file from a previous version of Enderal SE. Please, delete Data\\SKSE\\Plugins\\{}.", filenames[i]).c_str(), "Error", MB_OK | MB_ICONERROR); + exit(EXIT_FAILURE); + } + } + if (DataFileExists("Dawnguard.esm") || DataFileExists("Dragonborn.esm") || DataFileExists("HearthFires.esm") || DataFileExists("Update.esm")) { MessageBoxW(NULL, L"Skyrim DLCs are incompatible with Enderal.", L"Error", MB_OK | MB_ICONERROR); exit(EXIT_FAILURE);