Added mod blacklist

This commit is contained in:
Eddoursul 2022-09-01 12:06:40 +02:00
parent 509c54e62a
commit 5078a42dbb
3 changed files with 24 additions and 2 deletions

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

Binary file not shown.

View File

@ -10,6 +10,27 @@ inline bool DataFileExists(std::string filename, int maxSize = 1000000)
return std::filesystem::exists(path) && std::filesystem::file_size(path) > maxSize;
}
inline void CheckBlacklist()
{
const auto dataHandler = RE::TESDataHandler::GetSingleton();
if (!dataHandler) {
return;
}
std::string filenames[1] = {
"Enderal_FS_More_Affinities.esp",
};
for (short i = 0; i < 1; i++) {
if (dataHandler->LookupLoadedModByName(filenames[i])) {
aModNames.insert(filenames[i]);
RE::DebugMessageBox(std::format("{} is incompatible with Enderal SE.\nCheck console for the list of flagged mods.", filenames[i]).c_str());
RE::ConsoleLog::GetSingleton()->Print(std::format("{} is incompatible", filenames[i]).c_str());
}
}
}
inline void NotifyInvalidForm(const RE::TESForm* form)
{
if (!form) {

View File

@ -53,6 +53,7 @@ inline void CheckIncompatibleMods()
{
RE::ConsoleLog::GetSingleton()->Print("Loaded SureAI's Enderal: Forgotten Stories | Special Edition v2.0.12 by Eddoursul and contributors");
CheckBlacklist();
CheckWorldspaces();
CheckUnconvertedMap();
CheckSkyrimCells();