Lua: Implement Hot-Reload

This commit is contained in:
Lion Kortlepel committed 2021-09-21 16:21:09 +02:00
1 parent fe3ccafc1d
commit 9d0caf2c7d
3 files changed
+10 -3

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ private:
TPluginMonitor mPluginMonitor;
std::atomic_bool mShutdown { false };
fs::path mResourceServerPath;
std::vector<TLuaPlugin*> mLuaPlugins;
std::vector<std::shared_ptr<TLuaPlugin>> mLuaPlugins;
std::unordered_map<TLuaStateId, std::unique_ptr<StateThreadData>> mLuaStates;
std::recursive_mutex mLuaStatesMutex;
std::unordered_map<std::string /* event name */, std::unordered_map<TLuaStateId, std::set<std::string>>> mLuaEvents;