From 6a1e6a7d6b6a3d987f2fccb3c06f4f5da071f504 Mon Sep 17 00:00:00 2001 From: Nicholas Tay Date: Tue, 10 May 2022 00:40:10 +1000 Subject: Dynamic load boards as DLL (windows only for now) The .h files are pretty weird, should look at other C projects to see how they load plugins. This function pointer business with typedefs is kinda weird, not sure where they should live. --- platform/platform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'platform/platform.h') diff --git a/platform/platform.h b/platform/platform.h index da1efa6..fd9b9bb 100644 --- a/platform/platform.h +++ b/platform/platform.h @@ -1,6 +1,11 @@ #ifndef CLAK_PLATFORM_H_ #define CLAK_PLATFORM_H_ +#include + +#include "../board/board.h" + +bool load_board(char *board_name, fn_board_on_down *on_down, fn_board_on_down *on_up); bool sound_init(float volume); void sound_play(unsigned char *buffer); void keyboard_unhook(void); -- cgit