X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Fgp2x.c;h=58bf931da1883911566fc6d34f03d8996465bfb0;hp=0c48ad49a4ee3b05003370f0cad0ee6de79b859f;hb=e6ee752982da44a60a9a6b5916d7642ba2dd8b9e;hpb=989672f4f2b4b4b2b373271374e6546546091c10 diff --git a/drivers/gp2x/gp2x.c b/drivers/gp2x/gp2x.c index 0c48ad4..58bf931 100644 --- a/drivers/gp2x/gp2x.c +++ b/drivers/gp2x/gp2x.c @@ -15,10 +15,11 @@ #include "cpuctrl.h" #include "squidgehack.h" -int CLImain(int argc, char *argv[]); +int GP2X_PORT_REV = +#include "rev.h" +; -//#define SOUND_RATE 44100 -#define SOUND_RATE 22050 +int CLImain(int argc, char *argv[]); DSETTINGS Settings; CFGSTRUCT DriverConfig[]={ @@ -87,7 +88,7 @@ static void SetDefaults(void) Settings.cpuclock = 150; Settings.frameskip = -1; // auto Settings.mmuhack = 1; - Settings.sound_rate = SOUND_RATE; + Settings.sound_rate = 22050; Settings.turbo_rate_add = (8*2 << 24) / 60 + 1; // 8Hz turbofire Settings.gamma = 100; // default controls, RLDU SEBA @@ -116,37 +117,6 @@ void DoDriverArgs(void) #endif } -int InitMouse(void) -{ - return(0); -} - -void KillMouse(void){} - -void GetMouseData(uint32 *d) -{ -} - -int InitKeyboard(void) -{ - return(1); -} - -int UpdateKeyboard(void) -{ - return(1); -} - -void KillKeyboard(void) -{ - -} - -char *GetKeyboard(void) -{ - return NULL; -} - char **g_argv; int mmuhack_status = 0; @@ -158,10 +128,10 @@ int main(int argc, char *argv[]) int ret; g_argv = argv; - puts("Starting GPFCE - Port version " GP2X_PORT_VERSION " (" __DATE__ ")"); - puts("Based on FCE Ultra "VERSION_STRING"..."); - puts("Ported by Zheng Zhu"); - puts("Additional optimization/misc work by notaz\n"); + printf("Starting GPFCE - Port version " GP2X_PORT_VERSION " r%i (" __DATE__ ")\n", GP2X_PORT_REV); + puts("Based on FCE Ultra "VERSION_STRING" and 0.98.1x versions"); + puts("Original port by Zheng Zhu"); + puts("Menu/optimization/misc work by notaz\n"); gp2x_init(); cpuctrl_init();