X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=fceu.git;a=blobdiff_plain;f=drivers%2Fgp2x%2Fgp2x.c;h=a4834b3a1a307d07e831f3d8fe17d73c68e4b8a4;hp=fbc1c9ee37d1985ae5b526f45b14dafb764f3826;hb=6f6bc6fa47b2888c4420eeb323d96be0982150de;hpb=971a1d07d2f5b5a6f991ed5712275c04b933734f diff --git a/drivers/gp2x/gp2x.c b/drivers/gp2x/gp2x.c index fbc1c9e..a4834b3 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,9 +88,10 @@ 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; + Settings.sstate_confirm = 1; // default controls, RLDU SEBA Settings.KeyBinds[ 0] = 0x010; // GP2X_UP Settings.KeyBinds[ 4] = 0x020; // GP2X_DOWN @@ -101,6 +103,9 @@ static void SetDefaults(void) Settings.KeyBinds[15] = 0x200; // GP2X_Y Settings.KeyBinds[ 8] = 0x008; // GP2X_START Settings.KeyBinds[ 9] = 0x004; // GP2X_SELECT + Settings.KeyBinds[10] = 0x80000000; // GP2X_L + Settings.KeyBinds[11] = 0x40000000; // GP2X_R + Settings.KeyBinds[27] = 0xc0000000; // GP2X_PUSH } void DoDriverArgs(void) @@ -127,10 +132,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();