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