restructure the repository to be Cyclone only
[cyclone68000.git] / PicoDrive / WinMain.cpp
diff --git a/PicoDrive/WinMain.cpp b/PicoDrive/WinMain.cpp
deleted file mode 100644 (file)
index ccd53b2..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-\r
-// This file is part of the PicoDrive Megadrive Emulator\r
-\r
-// Copyright (c) 2011 FinalDave (emudave (at) gmail.com)\r
-\r
-// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
-// You can choose the license that has the most advantages for you.\r
-\r
-// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
-\r
-#include "stdafx.h"\r
-#include <stdarg.h>\r
-\r
-static FILE *DebugFile=NULL;\r
-int Main3800=0;\r
-int WINAPI WinMain(HINSTANCE,HINSTANCE,LPTSTR,int)\r
-{\r
-  MSG msg; int ret=0;\r
-  TCHAR device[260];\r
-\r
-  memset(&msg,0,sizeof(msg));\r
-  memset(device,0,sizeof(device));\r
-\r
-  // Check if this program is running already:\r
-  FrameWnd=FindWindow(APP_TITLE,NULL);\r
-  if (FrameWnd!=NULL) { SetForegroundWindow(FrameWnd); return 0; }\r
-\r
-  DeleteFile(L"zout.txt");\r
-\r
-  SystemParametersInfo(SPI_GETOEMINFO,sizeof(device)>>1,device,0);\r
-  if (_wcsicmp(device,L"compaq ipaq h3800")==0) Main3800=1;\r
-\r
-  FrameInit();\r
-\r
-  ConfigInit();\r
-  ConfigLoad();\r
-\r
-  WaveRate=44100; WaveLen=735;\r
-  WaveInit();\r
-\r
-  for(;;)\r
-  {\r
-    ret=PeekMessage(&msg,NULL,0,0,PM_REMOVE);\r
-    if (ret)\r
-    {\r
-      if (msg.message==WM_QUIT) break;\r
-      TranslateMessage(&msg);\r
-      DispatchMessage(&msg);\r
-    }\r
-    else\r
-    {\r
-      EmulateFrame();\r
-      //WaveUpdate();\r
-      Sleep(1);\r
-    }\r
-  }\r
-\r
-  WaveExit();\r
-  EmulateExit();\r
-\r
-  ConfigSave();\r
-\r
-  DestroyWindow(FrameWnd);\r
-\r
-  if (DebugFile) fclose(DebugFile);\r
-  DebugFile=NULL;\r
-  return 0;\r
-}\r
-\r
-extern "C" int dprintf(char *Format, ...)\r
-{\r
-  va_list VaList=NULL;\r
-  va_start(VaList,Format);\r
-\r
-  if (DebugFile==NULL) DebugFile=fopen("zout.txt","wt");\r
-  if (DebugFile) vfprintf(DebugFile,Format,VaList);\r
-\r
-  va_end(VaList);\r
-  return 0;\r
-}\r