savestate loader in menu
[picodrive.git] / platform / gp2x / emu.h
CommitLineData
cc68a136 1// (c) Copyright 2006 notaz, All rights reserved.\r
2// Free for non-commercial use.\r
3\r
4// For commercial use, separate licencing terms must be obtained.\r
5\r
6\r
7\r
8// engine states\r
9enum TPicoGameState {\r
10 PGS_Paused = 1,\r
11 PGS_Running,\r
12 PGS_Quit,\r
13 PGS_KeyConfig,\r
14 PGS_ReloadRom,\r
15 PGS_Menu,\r
16};\r
17\r
18typedef struct {\r
19 char lastRomFile[512];\r
20 int EmuOpt; // LSb->MSb: use_sram, show_fps, enable_sound, gzip_saves,\r
21 // squidgehack, save_cfg_on_exit, <unused>, 16_bit_mode\r
4f265db7 22 // craigix_ram, confirm_save, show_cd_leds\r
23 //\r
cc68a136 24 int PicoOpt; // used for config saving only, see Pico.h\r
25 int PsndRate; // ditto\r
26 int PicoRegion; // ditto\r
27 int Frameskip;\r
28 int CPUclock;\r
29 int KeyBinds[32];\r
30 int volume;\r
31 int gamma;\r
32 int JoyBinds[4][32];\r
51a902ae 33 int PicoAutoRgnOrder;\r
cc68a136 34} currentConfig_t;\r
35\r
36extern char romFileName[];\r
37extern int engineState;\r
38extern currentConfig_t currentConfig;\r
39\r
40\r
41int emu_ReloadRom(void);\r
42void emu_Init(void);\r
43void emu_Deinit(void);\r
44int emu_SaveLoadGame(int load, int sram);\r
45void emu_Loop(void);\r
46void emu_ResetGame(void);\r
47int emu_ReadConfig(int game);\r
48int emu_WriteConfig(int game);\r
860c6322 49char *emu_GetSaveFName(int load, int is_sram, int slot);\r
50int emu_check_save_file(int slot);\r
51void emu_set_save_cbs(int gz);\r
52void emu_forced_frame(void);\r
bf098bc5 53int find_bios(int region, char **bios_file);\r
54\r