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