mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-25 17:07:58 -05:00
move data loaded
This commit is contained in:
parent
69de08bc0a
commit
43adb35311
1 changed files with 1 additions and 4 deletions
|
@ -174,10 +174,6 @@ std::vector<Patch*> Mod::Impl::getPatches() const {
|
|||
// Settings and saved values
|
||||
|
||||
Result<> Mod::Impl::loadData() {
|
||||
Loader::get()->queueInMainThread([&]() {
|
||||
ModStateEvent(m_self, ModEventType::DataLoaded).post();
|
||||
});
|
||||
|
||||
// Settings
|
||||
// Check if settings exist
|
||||
auto settingPath = m_saveDirPath / "settings.json";
|
||||
|
@ -331,6 +327,7 @@ Result<> Mod::Impl::loadBinary() {
|
|||
|
||||
ModStateEvent(m_self, ModEventType::Loaded).post();
|
||||
ModStateEvent(m_self, ModEventType::Enabled).post();
|
||||
ModStateEvent(m_self, ModEventType::DataLoaded).post();
|
||||
|
||||
m_isCurrentlyLoading = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue