Gizmondo port updated to 1.51b
[libpicofe.git] / common / emu.h
CommitLineData
f013066e 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
6typedef struct {
367b6f1f 7 // char lastRomFile[512];
f013066e 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
f3dc5a3a 11 // A_SNs_gamma, perfect_vsync, giz_scanlines, giz_dblbuff
c6334564 12 // vsync_mode, show_clock, no_frame_limitter
0ae25549 13 int s_PicoOpt; // for old cfg files only
14 int s_PsndRate;
15 int s_PicoRegion;
f013066e 16 int Frameskip;
17 int CPUclock;
18 int KeyBinds[32];
19 int volume;
20 int gamma;
21 int JoyBinds[4][32];
0ae25549 22 int s_PicoAutoRgnOrder;
23 int s_PicoCDBuffers;
6f748c47 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
960a8e27 27 int gamma2; // psp: black level
6589c840 28 int turbo_rate;
f013066e 29} currentConfig_t;
30
0ae25549 31extern currentConfig_t currentConfig, defaultConfig;
f013066e 32extern char *PicoConfigFile;
144a28a0 33extern int rom_loaded;
f013066e 34extern char noticeMsg[64];
35extern int state_slot;
36extern int config_slot, config_slot_current;
37extern unsigned char *movie_data;
367b6f1f 38extern char lastRomFile[512];
8e708f92 39extern int kb_combo_keys, kb_combo_acts; // keys and actions which need button combos
8a091e48 40extern int pico_inp_mode;
f013066e 41
42
43int emu_ReloadRom(void);
44int emu_SaveLoadGame(int load, int sram);
45int emu_ReadConfig(int game, int no_defaults);
46int emu_WriteConfig(int game);
47char *emu_GetSaveFName(int load, int is_sram, int slot);
48int emu_checkSaveFile(int slot);
49void emu_setSaveStateCbs(int gz);
50void emu_updateMovie(void);
51int emu_cdCheck(int *pregion);
52int emu_findBios(int region, char **bios_file);
53void emu_textOut8 (int x, int y, const char *text);
54void emu_textOut16(int x, int y, const char *text);
0ae25549 55char *emu_makeRomId(void);
8e708f92 56void emu_findKeyBindCombos(void);
84e21f25 57void emu_forcedFrame(int opts);
8a091e48 58void emu_changeFastForward(int set_on);
59void emu_RunEventsPico(unsigned int events);
6589c840 60void emu_DoTurbo(int *pad, int acts);
f013066e 61
960a8e27 62extern const char * const keyNames[];
0ae25549 63void emu_prepareDefaultConfig(void);
7443ecd9 64void emu_platformDebugCat(char *str);