mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
change message for conflicting mods as well
This commit is contained in:
parent
4c354ed460
commit
4b667cc82c
4 changed files with 13 additions and 3 deletions
|
@ -28,6 +28,7 @@ namespace geode {
|
|||
Suggestion,
|
||||
Recommendation,
|
||||
Conflict,
|
||||
OutdatedConflict,
|
||||
InvalidFile,
|
||||
Duplicate,
|
||||
SetupFailed,
|
||||
|
|
|
@ -586,9 +586,9 @@ void Loader::Impl::findProblems() {
|
|||
switch(dep.importance) {
|
||||
case ModMetadata::Incompatibility::Importance::Conflicting: {
|
||||
this->addProblem({
|
||||
LoadProblem::Type::Conflict,
|
||||
dep.version.toString()[0] == '<' ? LoadProblem::Type::OutdatedConflict : LoadProblem::Type::Conflict,
|
||||
mod,
|
||||
fmt::format("{} {}", dep.id, dep.version.toString())
|
||||
fmt::format("{}", dep.id)
|
||||
});
|
||||
log::warn("{} conflicts with {} {}", id, dep.id, dep.version);
|
||||
} break;
|
||||
|
|
|
@ -54,8 +54,16 @@ bool ProblemsListCell::init(LoadProblem problem, ProblemsListPopup* list, CCSize
|
|||
message = fmt::format("{} recommends {}", cause, problem.message);
|
||||
break;
|
||||
case LoadProblem::Type::Conflict:
|
||||
// i copy pasted the message from incompatibility
|
||||
// because as far as i can tell there's no behavorial
|
||||
// difference, so it makes no sense to show the difference
|
||||
// to the user
|
||||
icon = "info-warning.png"_spr;
|
||||
message = fmt::format("{} conflicts with {}", cause, problem.message);
|
||||
message = fmt::format("Uninstall {} to use {}", problem.message, cause);
|
||||
break;
|
||||
case LoadProblem::Type::OutdatedConflict:
|
||||
icon = "info-alert.png"_spr;
|
||||
message = fmt::format("Update {} to use {}", problem.message, cause);
|
||||
break;
|
||||
case LoadProblem::Type::InvalidFile:
|
||||
icon = "info-alert.png"_spr;
|
||||
|
|
|
@ -54,6 +54,7 @@ CCArray* ProblemsListPopup::createCells(Mod* scrollTo, float& scrollValue) {
|
|||
case geode::LoadProblem::Type::OutdatedIncompatibility:
|
||||
case geode::LoadProblem::Type::PresentIncompatibility:
|
||||
veryTop.push_back(ProblemsListCell::create(problem, this, this->getCellSize()));
|
||||
break;
|
||||
default:
|
||||
top.push_back(ProblemsListCell::create(problem, this, this->getCellSize()));
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue