Added mod blacklist
This commit is contained in:
parent
509c54e62a
commit
5078a42dbb
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
BIN
SKSE/Plugins/EnderalSE.dll
(Stored with Git LFS)
Binary file not shown.
@ -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) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user