X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Femu.h;h=192d268c3c7f7ec96c7e07e179bd0a630babcb68;hb=0c2e114ed74047514a95163b191a15c34bdecafc;hp=a2d5eb6b536fc8e2556df5c248463e0dbcf457ba;hpb=9ecdd73ae7f2666068d5bd8d6c2abde3040aa998;p=libpicofe.git diff --git a/common/emu.h b/common/emu.h index a2d5eb6..192d268 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; @@ -98,8 +99,10 @@ enum TPicoGameState { void emu_init(void); void emu_finish(void); +void emu_loop(void); int emu_reload_rom(char *rom_fname); +int emu_swap_cd(const char *fname); int emu_save_load_game(int load, int sram); void emu_reset_game(void); @@ -111,13 +114,16 @@ 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); +void emu_status_msg(const char *format, ...); #ifdef __cplusplus } // extern "C"