Skip to content

Commit

Permalink
update invalid mods v3
Browse files Browse the repository at this point in the history
  • Loading branch information
qimiko committed Sep 10, 2024
1 parent d8cb2de commit 30dc70c
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions loader/src/ui/mods/list/ModItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -499,17 +499,24 @@ void ModItem::onView(CCObject*) {
if (!Loader::get()->isModVersionSupported(version.getGeodeVersion())) {
return FLAlertLayer::create(
nullptr,
"Outdated",
"This mod is targets an <cr>outdated version of Geode</c>. "
"<co>Please wait for its developer to update it.</c>",
"Unavailable",
"This mod targets an <cr>unsupported version of Geode</c>.",
"OK", nullptr, 360
)->show();
}
if (version.getGameVersion() == "0.000") {
return FLAlertLayer::create(
nullptr,
"Invalid Platform",
"This mod is <cr>not available</c> for your current platform.",
"OK", nullptr, 360
)->show();
}
if (version.getGameVersion() != "*" && version.getGameVersion() != GEODE_STR(GEODE_GD_VERSION)) {
return FLAlertLayer::create(
nullptr,
"Outdated",
"This mod is targets a <cr>different version of Geometry Dash</c>. "
"This mod targets a <cr>different version of Geometry Dash</c>. "
"<co>Please wait for its developer to update it.</c>",
"OK", nullptr, 360
)->show();
Expand Down

0 comments on commit 30dc70c

Please sign in to comment.