cmdline parser fix, missing init stuff
authornotaz <notasas@gmail.com>
Tue, 5 Jun 2007 21:44:48 +0000 (21:44 +0000)
committernotaz <notasas@gmail.com>
Tue, 5 Jun 2007 21:44:48 +0000 (21:44 +0000)
git-svn-id: file:///home/notaz/opt/svn/fceu@156 be3aeb3a-fb24-0410-a615-afba39da0efa

drivers/common/args.c
fce.c

index 964d931..78aadb5 100644 (file)
@@ -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 (file)
--- 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();
 }