From f16cdecdb331763c2cf07a549bc663da9e051130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20M=C3=B8llegaard?= Date: Tue, 5 Jan 2021 00:18:50 +0100 Subject: [PATCH] Make sure that FileTriggerPlugin is ready before FileMonitorPlugin --- Backend/Engine.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Backend/Engine.cs b/Backend/Engine.cs index 7d6430d8..6fa3b6cc 100644 --- a/Backend/Engine.cs +++ b/Backend/Engine.cs @@ -66,18 +66,19 @@ public Engine(IEventFactory eventFactory, IEventBus eventBus, IPluginFactory plu register_plugin(""TransmitterPlugin"", ""TransmitterPlugin"") register_plugin(""ReceiverPlugin"", ""ReceiverPlugin"") --- FileMonitorPlugin monitors the script directory and sends out events --- every time a file is created, renamed, modified or deleted -register_plugin(""FileMonitorPlugin"", ""FileMonitorPlugin"") -enable_plugin(""FileMonitorPlugin"") - -- FileTriggerPlugin listens for FileMonitorPlugin events and acts on them. -- Currently it will only act on files ending with .lua, which it launches -- a plugin for. If the file is modified, it will take down the plugin and -- launch a new one with the same file. If files are moved out of the directory -- it is consider as if it were deleted. Deleted files are taken down. register_plugin(""FileTriggerPlugin"", ""FileTriggerPlugin"") -enable_plugin(""FileTriggerPlugin"")"); +enable_plugin(""FileTriggerPlugin"") + +-- FileMonitorPlugin monitors the script directory and sends out events +-- every time a file is created, renamed, modified or deleted +register_plugin(""FileMonitorPlugin"", ""FileMonitorPlugin"") +enable_plugin(""FileMonitorPlugin"") +"); } luaService.Parse(filename: initFilename, logPrefix: "INIT");