mirror of
https://github.com/mupen64plus/mupen64plus-core.git
synced 2024-05-20 12:57:44 -04:00
remove plugin version checks; this actually is pointless, because the core should only care about the API version, not the plugin package version
This commit is contained in:
parent
ec0495b529
commit
dae9c58ffd
|
@ -207,7 +207,7 @@ static m64p_error plugin_connect_rsp(m64p_handle plugin_handle)
|
|||
m64p_plugin_type PluginType;
|
||||
int PluginVersion, APIVersion;
|
||||
(*getVersion)(&PluginType, &PluginVersion, &APIVersion, NULL, NULL);
|
||||
if (PluginType != M64PLUGIN_RSP || PluginVersion < MINIMUM_RSP_VERSION || APIVersion < MINIMUM_RSP_API_VERSION)
|
||||
if (PluginType != M64PLUGIN_RSP || APIVersion < MINIMUM_RSP_API_VERSION)
|
||||
{
|
||||
DebugMessage(M64MSG_ERROR, "incompatible RSP plugin");
|
||||
return M64ERR_INCOMPATIBLE;
|
||||
|
@ -257,7 +257,7 @@ static m64p_error plugin_connect_input(m64p_handle plugin_handle)
|
|||
m64p_plugin_type PluginType;
|
||||
int PluginVersion, APIVersion;
|
||||
(*getVersion)(&PluginType, &PluginVersion, &APIVersion, NULL, NULL);
|
||||
if (PluginType != M64PLUGIN_INPUT || PluginVersion < MINIMUM_INPUT_VERSION || APIVersion < MINIMUM_INPUT_API_VERSION)
|
||||
if (PluginType != M64PLUGIN_INPUT || APIVersion < MINIMUM_INPUT_API_VERSION)
|
||||
{
|
||||
DebugMessage(M64MSG_ERROR, "incompatible Input plugin");
|
||||
return M64ERR_INCOMPATIBLE;
|
||||
|
@ -318,7 +318,7 @@ static m64p_error plugin_connect_audio(m64p_handle plugin_handle)
|
|||
m64p_plugin_type PluginType;
|
||||
int PluginVersion, APIVersion;
|
||||
(*getVersion)(&PluginType, &PluginVersion, &APIVersion, NULL, NULL);
|
||||
if (PluginType != M64PLUGIN_AUDIO || PluginVersion < MINIMUM_AUDIO_VERSION || APIVersion < MINIMUM_AUDIO_API_VERSION)
|
||||
if (PluginType != M64PLUGIN_AUDIO || APIVersion < MINIMUM_AUDIO_API_VERSION)
|
||||
{
|
||||
DebugMessage(M64MSG_ERROR, "incompatible Audio plugin");
|
||||
return M64ERR_INCOMPATIBLE;
|
||||
|
@ -386,7 +386,7 @@ static m64p_error plugin_connect_gfx(m64p_handle plugin_handle)
|
|||
m64p_plugin_type PluginType;
|
||||
int PluginVersion, APIVersion;
|
||||
(*getVersion)(&PluginType, &PluginVersion, &APIVersion, NULL, NULL);
|
||||
if (PluginType != M64PLUGIN_GFX || PluginVersion < MINIMUM_GFX_VERSION || APIVersion < MINIMUM_GFX_API_VERSION)
|
||||
if (PluginType != M64PLUGIN_GFX || APIVersion < MINIMUM_GFX_API_VERSION)
|
||||
{
|
||||
DebugMessage(M64MSG_ERROR, "incompatible Video plugin");
|
||||
return M64ERR_INCOMPATIBLE;
|
||||
|
|
|
@ -31,11 +31,6 @@ extern m64p_error plugin_start(m64p_plugin_type);
|
|||
extern m64p_error plugin_check(void);
|
||||
|
||||
/*** Version requirement information ***/
|
||||
#define MINIMUM_RSP_VERSION 0x20000
|
||||
#define MINIMUM_GFX_VERSION 0x20000
|
||||
#define MINIMUM_AUDIO_VERSION 0x20000
|
||||
#define MINIMUM_INPUT_VERSION 0x20000
|
||||
|
||||
#define MINIMUM_RSP_API_VERSION 0x10000
|
||||
#define MINIMUM_GFX_API_VERSION 0x10000
|
||||
#define MINIMUM_AUDIO_API_VERSION 0x10000
|
||||
|
|
Loading…
Reference in a new issue