From 0ef7ac193dd82866908ea94afdec5241ab97a791 Mon Sep 17 00:00:00 2001 From: 0scar Date: Thu, 8 Feb 2024 10:10:14 +0100 Subject: Change state signatures --- src/core/include/engine/core/state.h | 4 ++-- src/core/include/engine/engine.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/include') diff --git a/src/core/include/engine/core/state.h b/src/core/include/engine/core/state.h index a4c56fa..f407acc 100644 --- a/src/core/include/engine/core/state.h +++ b/src/core/include/engine/core/state.h @@ -15,8 +15,8 @@ extern const char* StateTypeStr[]; StateType (*State_updateFunc(StateType type))(void*); -void State_init(StateType type, memory* mem); -void State_free(StateType type, memory* mem); +void State_init(StateType type, memory* mem, void* arg); +void* State_free(StateType type, memory* mem); StateType State_update(StateType type, memory* mem); /* Reloads shared object file associated with state */ diff --git a/src/core/include/engine/engine.h b/src/core/include/engine/engine.h index 7ba2cc8..11ee096 100644 --- a/src/core/include/engine/engine.h +++ b/src/core/include/engine/engine.h @@ -30,7 +30,7 @@ Platform* engine_init(const char* windowtitle, i32 windowWidth, i32 windowHeight const usize initial_memory, const Asset_FontSpec* fonts[], const Asset_TextureSpec* textures[]); -i32 engine_run(Platform* p, StateType initial_state); +i32 engine_run(Platform* p, StateType initial_state, void* state_arg); void engine_stop(Platform* p); -- cgit v1.3