core_path bugfix

This commit is contained in:
gen2brain 2013-09-28 22:27:05 +02:00
parent 6250aaf797
commit 0056b31f82

View file

@ -101,7 +101,7 @@ class Core:
os.path.basename(self.core_path), version_split(plugin_version), version_split(MINIMUM_CORE_VERSION))) os.path.basename(self.core_path), version_split(plugin_version), version_split(MINIMUM_CORE_VERSION)))
elif plugin_api & 0xffff0000 != CORE_API_VERSION & 0xffff0000: elif plugin_api & 0xffff0000 != CORE_API_VERSION & 0xffff0000:
raise Exception("library '%s' is incompatible, core API major version %s doesn't match application (%s)." % ( raise Exception("library '%s' is incompatible, core API major version %s doesn't match application (%s)." % (
os.path.basename(core_path), version_split(plugin_version), version_split(CORE_API_VERSION))) os.path.basename(self.core_path), version_split(plugin_version), version_split(CORE_API_VERSION)))
else: else:
config_ver, debug_ver, vidext_ver = self.core_get_api_versions() config_ver, debug_ver, vidext_ver = self.core_get_api_versions()
if config_ver & 0xffff0000 != CONFIG_API_VERSION & 0xffff0000: if config_ver & 0xffff0000 != CONFIG_API_VERSION & 0xffff0000: