mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-27 09:55:34 -05:00
fix hooks lol! funny demorgan stuff happened here
This commit is contained in:
parent
7796bfba9f
commit
5cf0f3c28c
1 changed files with 1 additions and 1 deletions
|
@ -465,7 +465,7 @@ Result<> Mod::Impl::disableHook(Hook* hook) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Result<Hook*> Mod::Impl::addHook(Hook* hook) {
|
Result<Hook*> Mod::Impl::addHook(Hook* hook) {
|
||||||
if (!ranges::contains(m_hooks, [&](auto const& h) { return h != hook; }))
|
if (!ranges::contains(m_hooks, [&](auto const& h) { return h == hook; }))
|
||||||
m_hooks.push_back(hook);
|
m_hooks.push_back(hook);
|
||||||
|
|
||||||
if (!LoaderImpl::get()->isReadyToHook()) {
|
if (!LoaderImpl::get()->isReadyToHook()) {
|
||||||
|
|
Loading…
Reference in a new issue