mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 01:45:35 -05:00
Unload the mod when first time warning pops up
This commit is contained in:
parent
19f63920e2
commit
63b4774813
2 changed files with 0 additions and 8 deletions
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue