451ab91e |
1 | /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
2 | * Mupen64plus - dummy_video.c * |
3 | * Mupen64Plus homepage: http://code.google.com/p/mupen64plus/ * |
4 | * Copyright (C) 2008 John Chadwick (NMN) * |
5 | * Copyright (C) 2009 Richard Goedeken * |
6 | * * |
7 | * This program is free software; you can redistribute it and/or modify * |
8 | * it under the terms of the GNU General Public License as published by * |
9 | * the Free Software Foundation; either version 2 of the License, or * |
10 | * (at your option) any later version. * |
11 | * * |
12 | * This program is distributed in the hope that it will be useful, * |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
15 | * GNU General Public License for more details. * |
16 | * * |
17 | * You should have received a copy of the GNU General Public License * |
18 | * along with this program; if not, write to the * |
19 | * Free Software Foundation, Inc., * |
20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * |
21 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
22 | |
23 | #include <stdlib.h> |
24 | |
25 | #include "api/m64p_types.h" |
26 | #include "plugin.h" |
27 | #include "dummy_video.h" |
28 | |
29 | m64p_error dummyvideo_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion, |
30 | int *APIVersion, const char **PluginNamePtr, int *Capabilities) |
31 | { |
32 | if (PluginType != NULL) |
33 | *PluginType = M64PLUGIN_GFX; |
34 | |
35 | if (PluginVersion != NULL) |
36 | *PluginVersion = 0x00010000; |
37 | |
38 | if (APIVersion != NULL) |
39 | *APIVersion = GFX_API_VERSION; |
40 | |
41 | if (PluginNamePtr != NULL) |
42 | *PluginNamePtr = "Mupen64Plus-NoVideo"; |
43 | |
44 | if (Capabilities != NULL) |
45 | *Capabilities = 0; |
46 | |
47 | return M64ERR_SUCCESS; |
48 | } |
49 | |
50 | void dummyvideo_ChangeWindow (void) |
51 | { |
52 | |
53 | } |
54 | |
55 | int dummyvideo_InitiateGFX (GFX_INFO Gfx_Info) |
56 | { |
57 | return 1; |
58 | } |
59 | |
60 | void dummyvideo_MoveScreen (int xpos, int ypos) |
61 | { |
62 | } |
63 | |
64 | void dummyvideo_ProcessDList(void) |
65 | { |
66 | |
67 | } |
68 | |
69 | void dummyvideo_ProcessRDPList(void) |
70 | { |
71 | |
72 | } |
73 | |
74 | void dummyvideo_RomClosed (void) |
75 | { |
76 | |
77 | } |
78 | |
79 | int dummyvideo_RomOpen (void) |
80 | { |
81 | return 1; |
82 | } |
83 | |
84 | void dummyvideo_ShowCFB (void) |
85 | { |
86 | |
87 | } |
88 | |
89 | void dummyvideo_UpdateScreen (void) |
90 | { |
91 | |
92 | } |
93 | |
94 | void dummyvideo_ViStatusChanged (void) |
95 | { |
96 | |
97 | } |
98 | |
99 | void dummyvideo_ViWidthChanged (void) |
100 | { |
101 | |
102 | } |
103 | |
104 | void dummyvideo_ReadScreen2 (void *dest, int *width, int *height, int front) |
105 | { |
106 | |
107 | } |
108 | |
109 | void dummyvideo_SetRenderingCallback(void (*callback)(int)) |
110 | { |
111 | |
112 | } |
113 | |
114 | void dummyvideo_FBRead(unsigned int addr) |
115 | { |
116 | } |
117 | |
118 | void dummyvideo_FBWrite(unsigned int addr, unsigned int size) |
119 | { |
120 | } |
121 | |
122 | void dummyvideo_FBGetFrameBufferInfo(void *p) |
123 | { |
124 | } |
125 | |
126 | void dummyvideo_ResizeVideoOutput(int width, int height) |
127 | { |
128 | } |
129 | |
130 | |