Skip to content

Commit

Permalink
removed too much
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Nov 7, 2023
1 parent 82d01be commit 7b33a6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game_api/level_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ void load_screen(StateMemory* state, size_t param_2, size_t param_3)
if (pre_event(ON::PRE_LOAD_SCREEN))
return;
g_load_screen_trampoline(state, param_2, param_3);
post_event(ON::POST_LOAD_SCREEN);
post_load_screen();
}

using UnloadLayerFun = void(Layer*);
Expand Down Expand Up @@ -2371,5 +2371,5 @@ void do_load_screen()
if (pre_event(ON::PRE_LOAD_SCREEN))
return;
load_screen_fun(state, 0, 0);
post_event(ON::POST_LOAD_SCREEN);
post_load_screen();
}
1 change: 1 addition & 0 deletions src/game_api/script/events.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ bool pre_init_layer(LAYER layer);
bool pre_unload_level();
bool pre_unload_layer(LAYER layer);

void post_load_screen();
void post_init_layer(LAYER layer);
void post_unload_layer(LAYER layer);
void post_room_generation();
Expand Down

0 comments on commit 7b33a6c

Please sign in to comment.