Added missing launcher
[mupen64plus-pandora.git] / source / mupen64plus-core / src / plugin / dummy_rsp.c
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  *   Mupen64plus - dummy_rsp.c                                             *
3  *   Mupen64Plus homepage: http://code.google.com/p/mupen64plus/           *
4  *   Copyright (C) 2009 Richard Goedeken                                   *
5  *                                                                         *
6  *   This program is free software; you can redistribute it and/or modify  *
7  *   it under the terms of the GNU General Public License as published by  *
8  *   the Free Software Foundation; either version 2 of the License, or     *
9  *   (at your option) any later version.                                   *
10  *                                                                         *
11  *   This program is distributed in the hope that it will be useful,       *
12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14  *   GNU General Public License for more details.                          *
15  *                                                                         *
16  *   You should have received a copy of the GNU General Public License     *
17  *   along with this program; if not, write to the                         *
18  *   Free Software Foundation, Inc.,                                       *
19  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.          *
20  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
21
22 #include <stdlib.h>
23
24 #include "api/m64p_types.h"
25 #include "plugin.h"
26 #include "dummy_rsp.h"
27
28 m64p_error dummyrsp_PluginGetVersion(m64p_plugin_type *PluginType, int *PluginVersion,
29                                      int *APIVersion, const char **PluginNamePtr, int *Capabilities)
30 {
31     if (PluginType != NULL)
32         *PluginType = M64PLUGIN_RSP;
33
34     if (PluginVersion != NULL)
35         *PluginVersion = 0x00010000;
36
37     if (APIVersion != NULL)
38         *APIVersion = RSP_API_VERSION;
39
40     if (PluginNamePtr != NULL)
41         *PluginNamePtr = "Mupen64Plus-NoRSP";
42
43     if (Capabilities != NULL)
44         *Capabilities = 0;
45
46     return M64ERR_SUCCESS;
47 }
48
49 unsigned int dummyrsp_DoRspCycles(unsigned int Cycles)
50 {
51     return Cycles;
52 }
53
54 void dummyrsp_InitiateRSP(RSP_INFO Rsp_Info, unsigned int * CycleCount)
55 {
56 }
57
58 void dummyrsp_RomClosed(void)
59 {
60 }
61