| 1 | \r |
| 2 | // This file is part of the PicoDrive Megadrive Emulator\r |
| 3 | \r |
| 4 | // This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r |
| 5 | // You can choose the license that has the most advantages for you.\r |
| 6 | \r |
| 7 | // SVN repository can be found at http://code.google.com/p/cyclone68000/\r |
| 8 | \r |
| 9 | #pragma warning(disable:4514)\r |
| 10 | #pragma warning(push)\r |
| 11 | #pragma warning(disable:4201)\r |
| 12 | #include <windows.h>\r |
| 13 | #pragma warning(pop)\r |
| 14 | \r |
| 15 | #include <aygshell.h>\r |
| 16 | #include <commdlg.h>\r |
| 17 | #include <gx.h>\r |
| 18 | \r |
| 19 | #include "resource.h"\r |
| 20 | \r |
| 21 | #include "../Pico/Pico.h"\r |
| 22 | \r |
| 23 | #define APP_TITLE L"PicoDrive"\r |
| 24 | \r |
| 25 | // ----------------------------------------------------------\r |
| 26 | \r |
| 27 | struct Target\r |
| 28 | {\r |
| 29 | unsigned char *screen;\r |
| 30 | POINT point; // Screen to client point\r |
| 31 | RECT view,update;\r |
| 32 | int offset; // Amount to add onto scanline\r |
| 33 | int top,bottom; // Update rectangle in screen coordinates\r |
| 34 | };\r |
| 35 | \r |
| 36 | // Config.cpp\r |
| 37 | struct Config\r |
| 38 | {\r |
| 39 | int key[8];\r |
| 40 | };\r |
| 41 | extern struct Config Config;\r |
| 42 | \r |
| 43 | int ConfigInit();\r |
| 44 | int ConfigSave();\r |
| 45 | int ConfigLoad();\r |
| 46 | \r |
| 47 | // Debug.cpp\r |
| 48 | int DebugShowRam();\r |
| 49 | int DebugScreenGrab();\r |
| 50 | \r |
| 51 | // Emulate.cpp\r |
| 52 | extern struct Target Targ;\r |
| 53 | extern TCHAR RomName[260];\r |
| 54 | int EmulateInit();\r |
| 55 | void EmulateExit();\r |
| 56 | int EmulateFrame();\r |
| 57 | int SndRender();\r |
| 58 | \r |
| 59 | // File.cpp\r |
| 60 | int FileLoadRom();\r |
| 61 | int FileState(int load);\r |
| 62 | \r |
| 63 | // FrameWindow.cpp\r |
| 64 | extern HWND FrameWnd;\r |
| 65 | extern struct GXDisplayProperties GXDisp;\r |
| 66 | extern struct GXKeyList GXKey;\r |
| 67 | extern int FrameShowRam;\r |
| 68 | int FrameInit();\r |
| 69 | \r |
| 70 | // Wave.cpp\r |
| 71 | extern int WaveRate;\r |
| 72 | extern int WaveLen; // Length of each buffer in samples\r |
| 73 | extern short *WaveDest; // Destination to render sound\r |
| 74 | int WaveInit();\r |
| 75 | int WaveExit();\r |
| 76 | int WaveUpdate();\r |
| 77 | \r |
| 78 | // WinMain.cpp\r |
| 79 | extern "C" int dprintf(char *Format, ...);\r |
| 80 | extern int Main3800;\r |