move data loaded

This commit is contained in:
altalk23 2024-09-13 20:08:16 +03:00
parent 69de08bc0a
commit 43adb35311

View file

@ -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;