emu.h 1.9 KB

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