24b24674 |
1 | #ifdef __cplusplus |
2 | extern "C" { |
3 | #endif |
4 | |
049a6b3e |
5 | /* stuff to be implemented by platform code */ |
d572cbad |
6 | extern char cpu_clk_name[]; |
049a6b3e |
7 | /* TODO rename all these */ |
8 | extern const char * const keyNames[]; // TODO rm |
24b24674 |
9 | void emu_prepareDefaultConfig(void); |
10 | void emu_platformDebugCat(char *str); |
11 | void emu_forcedFrame(int opts); |
12 | void emu_startSound(void); |
13 | void emu_endSound(void); |
14 | void emu_waitSound(void); |
049a6b3e |
15 | void emu_ResetGame(void); // TODO mv rm? |
046c4540 |
16 | void emu_Init(void); |
17 | void emu_Deinit(void); |
18 | void emu_Loop(void); |
049a6b3e |
19 | |
20 | void emu_noticeMsgUpdated(void); |
21 | int emu_getMainDir(char *dst, int len); |
22 | void menu_romload_prepare(const char *rom_name); |
23 | void menu_romload_end(void); |
24b24674 |
24 | |
fa8d1331 |
25 | void plat_early_init(void); |
d572cbad |
26 | void plat_init(void); |
27 | void plat_finish(void); |
28 | |
24b24674 |
29 | /* menu: enter (switch bpp, etc), begin/end drawing */ |
30 | void plat_video_menu_enter(int is_rom_loaded); |
31 | void plat_video_menu_begin(void); |
32 | void plat_video_menu_end(void); |
33 | |
fa8d1331 |
34 | void plat_validate_config(void); |
35 | |
049a6b3e |
36 | int plat_is_dir(const char *path); |
4ab30ad4 |
37 | int plat_wait_event(int *fds_hnds, int count, int timeout_ms); |
38 | void plat_sleep_ms(int ms); |
049a6b3e |
39 | |
4ab30ad4 |
40 | /* ms counter, to be used for time diff */ |
41 | unsigned int plat_get_ticks_ms(void); |
42 | |
43 | const char *plat_get_credits(void); |
049a6b3e |
44 | |
24b24674 |
45 | #ifdef __cplusplus |
46 | } // extern "C" |
47 | #endif |
48 | |