multiple changes

- load plugins when loading a game
- moved plugins scripts to resources/plugins (for pyinstaller)
- removed vanilla JTAC and JTAC_smoke options and settings GUI
- call JtacAutolasePlugin in armor.py
- made a dictionary of INSTALLED_PLUGINS
- removed NIOD from the VEAF plugin
This commit is contained in:
David Pierron
2020-10-12 19:49:39 +02:00
parent 3c4ccd7d57
commit ec6fc076de
21 changed files with 61 additions and 39 deletions

View File

@@ -148,7 +148,8 @@ class Operation:
if pluginName == None:
pluginName = "custom"
plugin_path = Path("./plugin",pluginName)
plugin_path = Path("./resources/plugins",pluginName)
logging.debug(f"plugin_path = {plugin_path}")
if scriptFile != None:
scriptFile_path = Path(plugin_path, scriptFile)
@@ -468,7 +469,8 @@ dcsLiberation.TargetPoints = {
# Inject Plugins Lua Scripts and data
self.listOfPluginsScripts = []
for plugin in INSTALLED_PLUGINS:
for pluginName in INSTALLED_PLUGINS:
plugin = INSTALLED_PLUGINS[pluginName]
plugin.injectScripts(self)
plugin.injectConfiguration(self)