1/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Mupen64plus - dummy_rsp.c *
3 * Mupen64Plus homepage: https://mupen64plus.org/ *
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 "dummy_rsp.h"
26#include "plugin.h"
27
28m64p_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
49unsigned int dummyrsp_DoRspCycles(unsigned int Cycles)
50{
51 return Cycles;
52}
53
54void dummyrsp_InitiateRSP(RSP_INFO Rsp_Info, unsigned int * CycleCount)
55{
56}
57
58void dummyrsp_RomClosed(void)
59{
60}
61
62