1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-29 09:44:52 +01:00

Use new FileWatcher class

This commit is contained in:
Ted John
2018-03-31 00:08:59 +01:00
parent 834cfad502
commit 1fd33dd86a
5 changed files with 164 additions and 37 deletions

View File

@@ -10,16 +10,20 @@
#pragma once
#include "../common.h"
#include "../core/FileWatcher.h"
#include "HookEngine.h"
#include "Plugin.h"
#include <future>
#include <memory>
#include <mutex>
#include <queue>
#include <string>
#include <vector>
struct duk_hthread;
typedef struct duk_hthread duk_context;
class FileWatcher;
class InteractiveConsole;
namespace OpenRCT2
@@ -88,6 +92,10 @@ namespace OpenRCT2::Scripting
HookEngine _hookEngine;
ScriptExecutionInfo _execInfo;
std::unique_ptr<FileWatcher> _pluginFileWatcher;
std::vector<std::string> _changedPluginFiles;
std::mutex _changedPluginFilesMutex;
public:
ScriptEngine(InteractiveConsole& console, IPlatformEnvironment& env);
ScriptEngine(ScriptEngine&) = delete;