X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Femu.h;h=28aed4f624c0406c6e150275fd2507ad85bace5e;hb=b79118011b8b1ac835efed1ac5a9ce3bdc55c158;hp=55e8ae2502d7109f4ec6081a14cf682a9645aa26;hpb=45deb4099e6d20780376e6425d43107120a10bc6;p=libpicofe.git diff --git a/common/emu.h b/common/emu.h index 55e8ae2..28aed4f 100644 --- a/common/emu.h +++ b/common/emu.h @@ -33,6 +33,12 @@ extern int g_screen_height; #define EOPT_CONFIRM_LOAD (1<<11) #define EOPT_A_SN_GAMMA (1<<12) #define EOPT_PSYNC (1<<13) +#define EOPT_GIZ_SCANLN (1<<14) +#define EOPT_GIZ_DBLBUF (1<<15) +#define EOPT_VSYNC_MODE (1<<16) +#define EOPT_SHOW_RTC (1<<17) +#define EOPT_NO_FRMLIMIT (1<<18) +#define EOPT_WIZ_TEAR_FIX (1<<19) enum { EOPT_SCALE_NONE = 0, @@ -42,13 +48,8 @@ enum { }; typedef struct _currentConfig_t { - // char lastRomFile[512]; - int EmuOpt; // LSb->MSb: use_sram, show_fps, enable_sound, gzip_saves, - // mmuhack, no_save_cfg_on_exit, , 16_bit_mode - // craigix_ram, confirm_save, show_cd_leds, confirm_load - // A_SNs_gamma, perfect_vsync, giz_scanlines, giz_dblbuff - // vsync_mode, show_clock, no_frame_limitter - int s_PicoOpt; // for old cfg files only + int EmuOpt; + int s_PicoOpt; int s_PsndRate; int s_PicoRegion; int s_PicoAutoRgnOrder; @@ -103,6 +104,7 @@ int emu_reload_rom(char *rom_fname); int emu_save_load_game(int load, int sram); void emu_reset_game(void); +void emu_set_defconfig(void); int emu_read_config(int game, int no_defaults); int emu_write_config(int game); @@ -110,10 +112,13 @@ char *emu_get_save_fname(int load, int is_sram, int slot); int emu_check_save_file(int slot); void emu_setSaveStateCbs(int gz); +void emu_text_out8 (int x, int y, const char *text); +void emu_text_out16(int x, int y, const char *text); +void emu_text_out8_rot (int x, int y, const char *text); +void emu_text_out16_rot(int x, int y, const char *text); + void emu_make_path(char *buff, const char *end, int size); void emu_update_input(void); -void emu_textOut8 (int x, int y, const char *text); -void emu_textOut16(int x, int y, const char *text); void emu_get_game_name(char *str150); void emu_set_fastforward(int set_on); int emu_cd_check(int *pregion, char *fname_in);