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