tweaking win32 port
[picodrive.git] / platform / win32 / GenaDrive / Loop.cpp
index 2781a91..305c27d 100644 (file)
@@ -1,10 +1,6 @@
 #include "app.h"\r
 //#include "FileMenu.h"\r
 \r
-extern char *romname;\r
-int fastForward=0;\r
-int frameStep=0;\r
-\r
 char LoopQuit=0;\r
 static FILE *DebugFile=NULL;\r
 int LoopMode=0;\r
@@ -17,9 +13,8 @@ int LoopInit()
   // bits LSb->MSb:\r
   // enable_ym2612&dac, enable_sn76496, enable_z80, stereo_sound;\r
   // alt_renderer, 6button_gamepad, accurate_timing, accurate_sprites\r
-  PicoOpt=0x1f;\r
+  PicoOpt=0xbccf;\r
   PsndRate=44100;\r
-  //PsndLen=PsndRate/60;   // calculated later by pico itself\r
 \r
   // Init Direct3D:\r
   ret=DirectInit(); if (ret) { error("Direct3D init failed"); return 1; }\r
@@ -55,18 +50,9 @@ void LoopExit()
 \r
 // ----------------------------------------------------------------\r
 \r
-int emu_frame = 0;\r
-\r
 static int DoGame()\r
 {\r
-  if(fastForward) { PicoSkipFrame+=1; PicoSkipFrame&=7; }\r
-  else PicoSkipFrame=0;\r
-\r
-  if(frameStep==1)      return 0;\r
-  else if(frameStep==3) frameStep=1;\r
-\r
   EmuFrame();\r
-  emu_frame++;\r
 \r
   if (Inp.held[7]==1) LoopMode=2; // Right thumb = Toggle Menu\r
 \r
@@ -144,9 +130,8 @@ static int ModeRender()
 \r
 static void UpdateSound(int len)\r
 {\r
-  if(fastForward) return;\r
-  while (DSoundUpdate()) { Sleep(1); }\r
-  while (DSoundUpdate()==0) { }\r
+  while (DSoundUpdate() > 0) { Sleep(1); }\r
+  while (DSoundUpdate()== 0) { }\r
 }\r
 \r
 int LoopCode()\r