Skip to content

Commit

Permalink
Make sure that FileTriggerPlugin is ready before FileMonitorPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis committed Jan 4, 2021
1 parent 4b54aaa commit f16cdec
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Backend/Engine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit f16cdec

Please sign in to comment.