From: notaz Date: Tue, 5 Jun 2007 21:44:48 +0000 (+0000) Subject: cmdline parser fix, missing init stuff X-Git-Tag: r1~26 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15d2d2584cc71389f06b969d7cd836332add97c6;p=fceu.git cmdline parser fix, missing init stuff git-svn-id: file:///home/notaz/opt/svn/fceu@156 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/drivers/common/args.c b/drivers/common/args.c index 964d931..78aadb5 100644 --- a/drivers/common/args.c +++ b/drivers/common/args.c @@ -80,6 +80,7 @@ static int ParseEA(int x, int argc, char *argv[], ARGPSTRUCT *argsps) *argsps[y].var=1; ret=1; } + break; } y++; } while(argsps[y].var || argsps[y].subs); diff --git a/fce.c b/fce.c index 51e6621..d540aff 100644 --- a/fce.c +++ b/fce.c @@ -39,6 +39,7 @@ #include "fds.h" #include "ines.h" #include "unif.h" +#include "vsuni.h" #include "cheat.h" #include "state.h" @@ -1519,12 +1520,15 @@ void PowerNES(void) PowerSound(); PowerPPU(); GameInterface(GI_POWER, 0); - timestampbase=0; + if(FCEUGameInfo.type==GIT_VSUNI) + FCEU_VSUniPower(); #ifdef ASM_6502 if (geniestage) GenieSetPages(0); #endif + timestampbase=0; X6502_Power(); + FCEU_PowerCheats(); }