1 // (c) Copyright 2006-2007 notaz, All rights reserved.
2 // Free for non-commercial use.
4 // For commercial use, separate licencing terms must be obtained.
7 // char lastRomFile[512];
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
11 // A_SNs_gamma, perfect_vsync, giz_scanlines, giz_dblbuff
12 // vsync_mode, show_clock, no_frame_limitter
13 int s_PicoOpt; // for old cfg files only
22 int s_PicoAutoRgnOrder;
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
27 int gamma2; // psp: black level
31 extern currentConfig_t currentConfig, defaultConfig;
32 extern char *PicoConfigFile;
33 extern int rom_loaded;
34 extern char noticeMsg[64];
35 extern int state_slot;
36 extern int config_slot, config_slot_current;
37 extern unsigned char *movie_data;
38 extern char lastRomFile[512];
39 extern int kb_combo_keys, kb_combo_acts; // keys and actions which need button combos
40 extern int pico_inp_mode;
43 int emu_ReloadRom(void);
44 int emu_SaveLoadGame(int load, int sram);
45 int emu_ReadConfig(int game, int no_defaults);
46 int emu_WriteConfig(int game);
47 char *emu_GetSaveFName(int load, int is_sram, int slot);
48 int emu_checkSaveFile(int slot);
49 void emu_setSaveStateCbs(int gz);
50 void emu_updateMovie(void);
51 int emu_cdCheck(int *pregion);
52 int emu_findBios(int region, char **bios_file);
53 void emu_textOut8 (int x, int y, const char *text);
54 void emu_textOut16(int x, int y, const char *text);
55 char *emu_makeRomId(void);
56 void emu_findKeyBindCombos(void);
57 void emu_forcedFrame(int opts);
58 void emu_changeFastForward(int set_on);
59 void emu_RunEventsPico(unsigned int events);
60 void emu_DoTurbo(int *pad, int acts);
62 extern const char * const keyNames[];
63 void emu_prepareDefaultConfig(void);