mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-23 07:57:51 -05:00
bring unknown problems back
This commit is contained in:
parent
8f39c38851
commit
06635690c4
1 changed files with 15 additions and 13 deletions
|
@ -493,19 +493,21 @@ void Loader::Impl::findProblems() {
|
||||||
|
|
||||||
Mod* myEpicMod = mod; // clang fix
|
Mod* myEpicMod = mod; // clang fix
|
||||||
// if the mod is not loaded but there are no problems related to it
|
// if the mod is not loaded but there are no problems related to it
|
||||||
// if (!mod->isLoaded() && !std::any_of(m_problems.begin(), m_problems.end(), [myEpicMod](auto& item) {
|
if (!mod->isLoaded() &&
|
||||||
// return std::holds_alternative<ModMetadata>(item.cause) &&
|
Mod::get()->getSavedValue<bool>("should-load-" + mod->getID(), true) &&
|
||||||
// std::get<ModMetadata>(item.cause).getID() == myEpicMod->getID() ||
|
!std::any_of(m_problems.begin(), m_problems.end(), [myEpicMod](auto& item) {
|
||||||
// std::holds_alternative<Mod*>(item.cause) &&
|
return std::holds_alternative<ModMetadata>(item.cause) &&
|
||||||
// std::get<Mod*>(item.cause) == myEpicMod;
|
std::get<ModMetadata>(item.cause).getID() == myEpicMod->getID() ||
|
||||||
// })) {
|
std::holds_alternative<Mod*>(item.cause) &&
|
||||||
// m_problems.push_back({
|
std::get<Mod*>(item.cause) == myEpicMod;
|
||||||
// LoadProblem::Type::Unknown,
|
})) {
|
||||||
// mod,
|
m_problems.push_back({
|
||||||
// ""
|
LoadProblem::Type::Unknown,
|
||||||
// });
|
mod,
|
||||||
// log::error("{} failed to load for an unknown reason", id);
|
""
|
||||||
// }
|
});
|
||||||
|
log::error("{} failed to load for an unknown reason", id);
|
||||||
|
}
|
||||||
|
|
||||||
log::popNest();
|
log::popNest();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue