Unload the mod when first time warning pops up

This commit is contained in:
altalk23 2023-02-26 17:39:40 +03:00
parent 19f63920e2
commit 63b4774813
2 changed files with 0 additions and 8 deletions

View file

@ -426,10 +426,6 @@ void LocalModInfoPopup::onEnableMod(CCObject* sender) {
"need to <cg>restart</c> the game to have it fully unloaded.",
"OK"
)->show();
if (m_layer) {
m_layer->updateAllStates(nullptr);
}
return;
}
if (as<CCMenuItemToggler*>(sender)->isToggled()) {
auto res = m_mod->loadBinary();

View file

@ -176,10 +176,6 @@ void ModCell::onEnable(CCObject* sender) {
"need to <cg>restart</c> the game to have it fully unloaded.",
"OK"
)->show();
if (m_layer) {
m_layer->updateAllStates(this);
}
return;
}
if (!as<CCMenuItemToggler*>(sender)->isToggled()) {
tryOrAlert(m_mod->enable(), "Error enabling mod");