Class ModInstallFilter

#include <Geode/loader/Index.hpp>
classModInstallFilter{ ... }

Basic filter for listening to mod installation events. Always propagates the event down the chain

Examples1
// Install "steve.hotdogs" and listen for its installation progress

// Create a listener that listens for when steve.hotdogs is being installed
auto listener = EventListener<ModInstallFilter>(+[](ModInstallEvent* ev) {
    // Check the event status using std::visit or other
}, ModInstallFilter("steve.hotdogs"));
// Get the latest version of steve.hotdogs from the index and install it
if (auto mod = Index::get()->getMajorItem("steve.hotdogs")) {
    Index::get()->install(mod);
}
Public static methods0
Public member functions1
geode::ListenerResulthandle(,)
No description provided
Fields0
Protected member functions0
Protected fields1
;
No description provided