diff --git a/source/playlunky/mod/mod_manager.cpp b/source/playlunky/mod/mod_manager.cpp index 8735968..e0e899a 100644 --- a/source/playlunky/mod/mod_manager.cpp +++ b/source/playlunky/mod/mod_manager.cpp @@ -900,6 +900,8 @@ ModManager::~ModManager() void ModManager::PostGameInit(const class PlaylunkySettings& settings) { + Spelunky_InitState(); + const auto db_folder = mModsRoot / ".db"; const auto db_original_folder = db_folder / "Original"; @@ -942,6 +944,8 @@ void ModManager::PostGameInit(const class PlaylunkySettings& settings) auto fmt_res = fmt::format_to_n(out_buffer, out_buffer_size - 1, "{}/save.dat", std::string_view{ script_path, script_path_size }); out_buffer[fmt_res.size] = '\0'; return true; }); + + Spelunky_PostInitState(); } bool ModManager::OnInput(std::uint32_t msg, std::uint64_t w_param, std::int64_t /*l_param*/) diff --git a/submodules/overlunky b/submodules/overlunky index 7750dea..922cfa4 160000 --- a/submodules/overlunky +++ b/submodules/overlunky @@ -1 +1 @@ -Subproject commit 7750dea7e249265b3024f062eeee74f2ce0239f8 +Subproject commit 922cfa4fd5ea20d08db9d4a8733151c06279a00e