X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=gp2x%2Femu.h;h=88947b52c785d9d0201a3ec9f2b0585fe0afd037;hb=b846453101c070b93938dd2224f0cca130a55e8c;hp=e5a7f303bd8f84e6e46b4b07a83ec30263ef4863;hpb=979ba09f053261922f8ccb4889c7367fbf010453;p=libpicofe.git diff --git a/gp2x/emu.h b/gp2x/emu.h index e5a7f30..88947b5 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,38 +13,17 @@ 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, enable_cdda - // enable_pcm - int PicoOpt; // used for config saving only, see Pico.h - int PsndRate; // ditto - int PicoRegion; // ditto - int Frameskip; - int CPUclock; - int KeyBinds[32]; - int volume; - int gamma; - int JoyBinds[4][32]; - int PicoAutoRgnOrder; -} currentConfig_t; - extern char romFileName[]; extern int engineState; -extern currentConfig_t currentConfig; -int emu_ReloadRom(void); void emu_Init(void); 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_WriteConfig(int game); -int find_bios(int region, char **bios_file); + +void osd_text(int x, int y, const char *text);