From 4cb29fbc2d20f20e9d605796b137b4b70363113a Mon Sep 17 00:00:00 2001 From: 0scar Date: Fri, 28 Jul 2023 16:32:58 +0200 Subject: Implement hotloading * This commit implements dltools.{c,h}: _A simple wrapper around libdl / dlfcn.h_ * Reload states when done initializing engine, if hotloading is enabled. * Adds general function types for state functions. --- include/engine/state.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/engine/state.h') diff --git a/include/engine/state.h b/include/engine/state.h index 402c701..cf486cc 100644 --- a/include/engine/state.h +++ b/include/engine/state.h @@ -20,4 +20,7 @@ void State_init(StateType type, memory *mem); void State_free(StateType type, memory *mem); StateType State_update(StateType type, memory *mem); +/* Reloads shared object file associated with state */ +bool State_reload(StateType type); + #endif -- cgit v1.3