ea8c405f |
1 | // (c) Copyright 2006-2007 notaz, All rights reserved. |
2 | // Free for non-commercial use. |
3 | |
4 | // For commercial use, separate licencing terms must be obtained. |
5 | |
6 | typedef struct { |
1ca2ea4f |
7 | // char lastRomFile[512]; |
ea8c405f |
8 | int EmuOpt; // LSb->MSb: use_sram, show_fps, enable_sound, gzip_saves, |
9 | // squidgehack, no_save_cfg_on_exit, <unused>, 16_bit_mode |
10 | // craigix_ram, confirm_save, show_cd_leds, confirm_load |
c77ca79e |
11 | // A_SNs_gamma, perfect_vsync, giz_scanlines, giz_dblbuff |
c6196c0f |
12 | // vsync_mode, show_clock, no_frame_limitter |
58c86d00 |
13 | int s_PicoOpt; // for old cfg files only |
14 | int s_PsndRate; |
15 | int s_PicoRegion; |
ea8c405f |
16 | int Frameskip; |
17 | int CPUclock; |
18 | int KeyBinds[32]; |
19 | int volume; |
20 | int gamma; |
21 | int JoyBinds[4][32]; |
58c86d00 |
22 | int s_PicoAutoRgnOrder; |
23 | int s_PicoCDBuffers; |
8ab3e3c1 |
24 | int scaling; // gp2x: 0=center, 1=hscale, 2=hvscale, 3=hsoftscale; psp: bilinear filtering |
25 | float scale; // psp: screen scale |
26 | float hscale32, hscale40; // psp: horizontal scale |
6fc57144 |
27 | int gamma2; // psp: black level |
ea8c405f |
28 | } currentConfig_t; |
29 | |
58c86d00 |
30 | extern currentConfig_t currentConfig, defaultConfig; |
ea8c405f |
31 | extern char *PicoConfigFile; |
eacee137 |
32 | extern int rom_loaded; |
ea8c405f |
33 | extern char noticeMsg[64]; |
34 | extern int state_slot; |
35 | extern int config_slot, config_slot_current; |
36 | extern unsigned char *movie_data; |
1ca2ea4f |
37 | extern char lastRomFile[512]; |
bdec53c9 |
38 | extern int kb_combo_keys, kb_combo_acts; // keys and actions which need button combos |
ea8c405f |
39 | |
40 | |
41 | int emu_ReloadRom(void); |
42 | int emu_SaveLoadGame(int load, int sram); |
43 | int emu_ReadConfig(int game, int no_defaults); |
44 | int emu_WriteConfig(int game); |
45 | char *emu_GetSaveFName(int load, int is_sram, int slot); |
46 | int emu_checkSaveFile(int slot); |
47 | void emu_setSaveStateCbs(int gz); |
48 | void emu_updateMovie(void); |
49 | int emu_cdCheck(int *pregion); |
50 | int emu_findBios(int region, char **bios_file); |
51 | void emu_textOut8 (int x, int y, const char *text); |
52 | void emu_textOut16(int x, int y, const char *text); |
58c86d00 |
53 | char *emu_makeRomId(void); |
bdec53c9 |
54 | void emu_findKeyBindCombos(void); |
ea8c405f |
55 | |
6fc57144 |
56 | extern const char * const keyNames[]; |
58c86d00 |
57 | void emu_prepareDefaultConfig(void); |