mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
this shouldnt pop back
This commit is contained in:
parent
4e28df1800
commit
b909bf69d8
1 changed files with 0 additions and 2 deletions
|
@ -465,7 +465,6 @@ Result<Hook*> Mod::Impl::claimHook(std::shared_ptr<Hook>&& hook) {
|
|||
if (LoaderImpl::get()->isReadyToHook()) {
|
||||
auto res2 = ptr->enable();
|
||||
if (!res2) {
|
||||
m_hooks.pop_back();
|
||||
return Err("Cannot enable hook: {}", res2.unwrapErr());
|
||||
}
|
||||
}
|
||||
|
@ -521,7 +520,6 @@ Result<Patch*> Mod::Impl::claimPatch(std::shared_ptr<Patch>&& patch) {
|
|||
if (this->isEnabled() && patch->getAutoEnable()) {
|
||||
auto res2 = ptr->enable();
|
||||
if (!res2) {
|
||||
m_patches.pop_back();
|
||||
return Err("Cannot enable patch: {}", res2.unwrapErr());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue