Updated form type collision warning
This commit is contained in:
parent
5b77524c2f
commit
d4335d3b4c
@ -48,28 +48,18 @@ namespace FormTypeCollisionDetector
|
||||
return false;
|
||||
}
|
||||
|
||||
logger::warn("Detected {} form type collision(s) from {} mod(s)",
|
||||
detectedCollisions.size(), flaggedMods.size());
|
||||
|
||||
// Print to console
|
||||
if (auto* console = RE::ConsoleLog::GetSingleton()) {
|
||||
for (const auto& mod : flaggedMods) {
|
||||
console->Print(std::format("{} causes form type collisions (incompatible with Enderal)", mod).c_str());
|
||||
}
|
||||
}
|
||||
|
||||
// Show message box for first mod only
|
||||
// Show message box
|
||||
if (!messageShown && !flaggedMods.empty()) {
|
||||
messageShown = true;
|
||||
auto firstMod = *flaggedMods.begin();
|
||||
std::string message = std::format(
|
||||
"{} is incompatible with Enderal (form type collision).\n"
|
||||
"Check console for details.", firstMod);
|
||||
"See Documents\\My Games\\Skyrim Special Edition (GOG)\\SKSE\\EnderalSE.log for details.", firstMod);
|
||||
|
||||
if (flaggedMods.size() > 1) {
|
||||
message = std::format(
|
||||
"{} and {} other mod(s) are incompatible with Enderal.\n"
|
||||
"Check console for details.",
|
||||
"{} and {} other mod(s) are incompatible with Enderal (form type collision).\n"
|
||||
"See Documents\\My Games\\Skyrim Special Edition (GOG)\\SKSE\\EnderalSE.log for details.",
|
||||
firstMod, flaggedMods.size() - 1);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user