X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=inline;f=gp2x%2Femu.h;h=6ae089df611bcae58314cbce8b39b9fb400ab1be;hb=0ad6c561aab998313765afd8ba43dee818f40662;hp=f5dcee3161d593bc3219e488cb7f51160c9c6cc5;hpb=5f9922e6c2c69cb940e70f1d108aac2c3d0b01d7;p=libpicofe.git diff --git a/gp2x/emu.h b/gp2x/emu.h index f5dcee3..6ae089d 100644 --- a/gp2x/emu.h +++ b/gp2x/emu.h @@ -1,4 +1,4 @@ -// (c) Copyright 2006 notaz, All rights reserved. +// (c) Copyright 2006-2007 notaz, All rights reserved. // Free for non-commercial use. // For commercial use, separate licencing terms must be obtained. @@ -13,14 +13,15 @@ enum TPicoGameState { PGS_KeyConfig, PGS_ReloadRom, PGS_Menu, + PGS_RestartRun, }; typedef struct { char lastRomFile[512]; int EmuOpt; // LSb->MSb: use_sram, show_fps, enable_sound, gzip_saves, - // squidgehack, save_cfg_on_exit, , 16_bit_mode - // craigix_ram, confirm_save, show_cd_leds - // + // squidgehack, no_save_cfg_on_exit, , 16_bit_mode + // craigix_ram, confirm_save, show_cd_leds, confirm_load + // A_SNs_gamma, perfect_vsync int PicoOpt; // used for config saving only, see Pico.h int PsndRate; // ditto int PicoRegion; // ditto @@ -32,6 +33,7 @@ typedef struct { int JoyBinds[4][32]; int PicoAutoRgnOrder; int PicoCDBuffers; + int scaling; // 0=center, 1=hscale, 2=hvscale, 3=hsoftscale } currentConfig_t; extern char romFileName[]; @@ -45,11 +47,13 @@ void emu_Deinit(void); int emu_SaveLoadGame(int load, int sram); void emu_Loop(void); void emu_ResetGame(void); -int emu_ReadConfig(int game); +int emu_ReadConfig(int game, int no_defaults); int emu_WriteConfig(int game); char *emu_GetSaveFName(int load, int is_sram, int slot); int emu_check_save_file(int slot); void emu_set_save_cbs(int gz); void emu_forced_frame(void); +int emu_cd_check(int *pregion); int find_bios(int region, char **bios_file); +void scaling_update(void);