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