Browse Source

Fix compatibility of plugin discovery with 2.6.x tools

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.5.6
falkTX 1 year ago
parent
commit
f2532a1161
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      source/frontend/carla_database.py

+ 2
- 2
source/frontend/carla_database.py View File

@@ -239,12 +239,12 @@ def runCarlaDiscovery(itype, stype, filename, tool, wineSettings=None):
else: else:
break break


if line == "carla-discovery::init::-----------":
if line.startswith("carla-discovery::init::"):
pinfo = deepcopy(PyPluginInfo) pinfo = deepcopy(PyPluginInfo)
pinfo['type'] = itype pinfo['type'] = itype
pinfo['filename'] = filename if filename != ":all" else "" pinfo['filename'] = filename if filename != ":all" else ""


elif line == "carla-discovery::end::------------":
elif line.startswith("carla-discovery::end::"):
if pinfo is not None: if pinfo is not None:
plugins.append(pinfo) plugins.append(pinfo)
del pinfo del pinfo


Loading…
Cancel
Save