| 64 | } |
| 65 | |
| 66 | void Module::assertCore() const { |
| 67 | if (!m_core) { |
| 68 | geode::utils::terminate( |
| 69 | fmt::format("Globed module {} ({}) by {} called a module function before registering the mod with the core", |
| 70 | this->name(), this->id(), this->author()), |
| 71 | Mod::get() |
| 72 | ); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | |
| 77 | } |