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:
Richard Goedeken 2009-12-13 15:43:24 -05:00
parent ec0495b529
commit dae9c58ffd
2 changed files with 4 additions and 9 deletions

View file

@ -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;

View file

@ -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