|
|
@ -10,6 +10,27 @@ inline bool DataFileExists(std::string filename, int maxSize = 1000000) |
|
|
|
return std::filesystem::exists(path) && std::filesystem::file_size(path) > maxSize; |
|
|
|
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) |
|
|
|
inline void NotifyInvalidForm(const RE::TESForm* form) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (!form) { |
|
|
|
if (!form) { |
|
|
|