diff options
author | Danny Holman <dholman@gymli.org> | 2025-03-20 14:15:38 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2025-03-20 14:18:49 -0500 |
commit | adaecb65eaa1abf437a24c93a08b2b7c2266c5dc (patch) | |
tree | 8b70c3f85648a12c6e6b7308489033653235aa64 /include/rune/core/mod.h | |
parent | 7281fe8fdbb64a83bc0f569ef01db33a1f26ac98 (diff) |
core: refactor core API to be in proper style
Bring the rest of the core API to be in line with the project coding
style. This commit also makes the coding style change formal by updating
the coding style document in the documentation.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'include/rune/core/mod.h')
-rw-r--r-- | include/rune/core/mod.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rune/core/mod.h b/include/rune/core/mod.h index f0940ce..32d1465 100644 --- a/include/rune/core/mod.h +++ b/include/rune/core/mod.h @@ -53,13 +53,13 @@ typedef void (*mod_func)(void); /** * Class-like definition for in-game mod */ -struct mod { +typedef struct mod { const char *name; ///< Name of the mod mod_func init_func; ///< Mod initialization function, called by rune_init_mods mod_func exit_func; ///< Mod exit function, called by rune_close_mods mod_func update_func; ///< Mod update function, called at every frame struct list_head list; ///< Linked list of all mod structs, used internally -}; +} mod_t; /** * \brief Load all the mods from the mod folder, mods must be either DLLs on Windows, |