Skip to content

Commit

Permalink
Update for new init API
Browse files Browse the repository at this point in the history
  • Loading branch information
Malacath-92 committed Feb 16, 2023
1 parent 05545af commit f8fef0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions source/playlunky/mod/mod_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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*/)
Expand Down
2 changes: 1 addition & 1 deletion submodules/overlunky
Submodule overlunky updated 54 files
+1 −1 docs/examples/clear_callback.md
+76 −21 docs/game_data/lua_enums.txt
+165 −34 docs/game_data/spel2.lua
+3 −3 docs/game_data/vtable_sizes.csv
+31 −4 docs/generate.py
+1 −0 docs/generate_emmylua.py
+1,344 −230 docs/index.html
+1,344 −230 docs/light.html
+108 −31 docs/src/includes/_enums.md
+474 −0 docs/src/includes/_events.md
+116 −7 docs/src/includes/_globals.md
+3 −1 docs/src/includes/_home.md
+68 −46 docs/src/includes/_types.md
+1 −0 docs/src/index.html.md
+1 −0 docs/src/light.html.md
+596 −0 examples/too_many_skins.lua
+45 −4 examples/user_data.lua
+0 −9 src/game_api/character_def.cpp
+270 −72 src/game_api/file_api.cpp
+5 −1 src/game_api/file_api.hpp
+2 −1 src/game_api/hook_handler.hpp
+38 −35 src/game_api/level_api.cpp
+52 −31 src/game_api/level_api.hpp
+14 −0 src/game_api/render_api.cpp
+3 −0 src/game_api/render_api.hpp
+1 −0 src/game_api/screen.hpp
+102 −52 src/game_api/script/lua_backend.cpp
+7 −1 src/game_api/script/lua_backend.hpp
+18 −1 src/game_api/script/lua_console.cpp
+153 −10 src/game_api/script/lua_vm.cpp
+7 −0 src/game_api/script/safe_cb.inl
+2 −26 src/game_api/script/script_impl.cpp
+1 −1 src/game_api/script/usertypes/entity_lua.cpp
+72 −5 src/game_api/script/usertypes/gui_lua.cpp
+2 −0 src/game_api/script/usertypes/gui_lua.hpp
+82 −77 src/game_api/script/usertypes/level_lua.cpp
+6 −0 src/game_api/script/usertypes/prng_lua.cpp
+9 −1 src/game_api/script/usertypes/state_lua.cpp
+55 −18 src/game_api/script/usertypes/texture_lua.cpp
+39 −0 src/game_api/script/usertypes/theme_vtable_lua.cpp
+70 −0 src/game_api/script/usertypes/theme_vtable_lua.hpp
+5 −2 src/game_api/script/usertypes/vtables_lua.cpp
+71 −23 src/game_api/state.cpp
+64 −14 src/game_api/state.hpp
+32 −0 src/game_api/steam_api.cpp
+2 −0 src/game_api/steam_api.hpp
+80 −0 src/game_api/texture.cpp
+3 −0 src/game_api/texture.hpp
+493 −65 src/injected/ui.cpp
+10 −0 src/injected/ui_util.cpp
+2 −0 src/injected/ui_util.hpp
+1 −0 src/shared/logger.h
+8 −0 src/spel2_dll/spel2.cpp
+2 −0 src/spel2_dll/spel2.h

0 comments on commit f8fef0f

Please sign in to comment.