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