diff --git a/loader/src/ui/internal/info/ModInfoPopup.cpp b/loader/src/ui/internal/info/ModInfoPopup.cpp index 55b3d665..8e9740e1 100644 --- a/loader/src/ui/internal/info/ModInfoPopup.cpp +++ b/loader/src/ui/internal/info/ModInfoPopup.cpp @@ -174,24 +174,40 @@ void ModInfoPopup::onRepository(CCObject*) { void ModInfoPopup::onInfo(CCObject*) { auto info = this->getMetadata(); - FLAlertLayer::create( - nullptr, - ("About " + info.getName()).c_str(), - fmt::format( + auto about = std::string(); + if (info.getID() == "geode.loader") { + about = fmt::format( "ID: {}\n" "Version: {}\n" "Developers: {}\n" - "Path: {}\n", + "Bindings Commit Hash: {}\n" + "Loader Commit Hash: {}", + info.getID(), + info.getVersion().toString(), + ranges::join(info.getDevelopers(), ", "), + about::getBindingsCommitHash(), + about::getLoaderCommitHash() + ); + } + else { + about = fmt::format( + "ID: {}\n" + "Version: {}\n" + "Developers: {}\n" + "Path: {}\n", info.getID(), info.getVersion().toString(), ranges::join(info.getDevelopers(), ", "), info.getPath().string() - ), - "OK", + ); + } + FLAlertLayer::create( nullptr, + ("About " + info.getName()).c_str(), + about, + "OK", nullptr, 400.f - ) - ->show(); + )->show(); } void ModInfoPopup::onChangelog(CCObject* sender) { @@ -410,22 +426,6 @@ bool LocalModInfoPopup::init(Mod* mod, ModListLayer* list) { } } } - if (mod == Mod::get()) { - // we're showing the internal geode mod :-) - auto* label = CCLabelBMFont::create( - fmt::format( - "Bindings: {}\nLoader: {}", - about::getBindingsCommitHash(), - about::getLoaderCommitHash() - ).c_str(), - "chatFont.fnt" - ); - label->setAlignment(kCCTextAlignmentRight); - label->setAnchorPoint({ .0f, .5f }); - label->setScale(.5f); - label->setOpacity(89); - m_mainLayer->addChildAtPosition(label, Anchor::BottomRight, ccp(5, 0)); - } // issue report button if (mod->getMetadata().getIssues()) {