| 160 | geode::Result<> disableHooks(); |
| 161 | |
| 162 | void assertNotAdded(geode::Hook* hook) const { |
| 163 | if (std::find(m_hooks.begin(), m_hooks.end(), hook) != m_hooks.end()) { |
| 164 | geode::utils::terminate( |
| 165 | fmt::format("Globed module {} ({}) by {} tried to claim a hook that was already claimed ({})", |
| 166 | this->name(), this->id(), this->author(), hook->getDisplayName()), |
| 167 | geode::Mod::get() |
| 168 | ); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | void assertNotAdded(geode::Patch* patch) const { |
| 173 | if (std::find(m_patches.begin(), m_patches.end(), patch) != m_patches.end()) { |