mirror of
https://github.com/geode-sdk/geode.git
synced 2025-02-17 00:30:26 -05:00
move ModEventType::Loaded place
This commit is contained in:
parent
d81774957d
commit
23c3095263
1 changed files with 1 additions and 2 deletions
|
@ -335,8 +335,6 @@ Result<> Mod::Impl::loadBinary() {
|
|||
}
|
||||
m_binaryLoaded = true;
|
||||
|
||||
ModStateEvent(m_self, ModEventType::Loaded).post();
|
||||
|
||||
LoaderImpl::get()->releaseNextMod();
|
||||
|
||||
for (auto const& hook : m_hooks) {
|
||||
|
@ -361,6 +359,7 @@ Result<> Mod::Impl::loadBinary() {
|
|||
|
||||
m_enabled = true;
|
||||
|
||||
ModStateEvent(m_self, ModEventType::Loaded).post();
|
||||
ModStateEvent(m_self, ModEventType::Enabled).post();
|
||||
|
||||
return Ok();
|
||||
|
|
Loading…
Reference in a new issue