gp2x+wiz binary support, wiz code wip
[libpicofe.git] / common / plat.h
1 #ifdef __cplusplus
2 extern "C" {
3 #endif
4
5 /* stuff to be implemented by platform code */
6 extern char cpu_clk_name[];
7 /* TODO rename all these */
8 extern const char * const keyNames[]; // TODO rm
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);
15 void  emu_ResetGame(void); // TODO mv rm?
16
17 void emu_noticeMsgUpdated(void);
18 int  emu_getMainDir(char *dst, int len);
19 void menu_romload_prepare(const char *rom_name);
20 void menu_romload_end(void);
21
22 void plat_early_init(void);
23 void plat_init(void);
24 void plat_finish(void);
25
26 /* menu: enter (switch bpp, etc), begin/end drawing */
27 void plat_video_menu_enter(int is_rom_loaded);
28 void plat_video_menu_begin(void);
29 void plat_video_menu_end(void);
30
31 void plat_validate_config(void);
32
33 int  plat_is_dir(const char *path);
34 int  plat_wait_event(int *fds_hnds, int count, int timeout_ms);
35 void plat_sleep_ms(int ms);
36
37 /* ms counter, to be used for time diff */
38 unsigned int  plat_get_ticks_ms(void);
39
40 const char   *plat_get_credits(void);
41
42 #ifdef __cplusplus
43 } // extern "C"
44 #endif
45