ElunaLuaEngine / Eluna

Eluna Lua Engine © for WoW Emulators
https://elunaluaengine.github.io
GNU General Public License v3.0
377 stars 362 forks source link

Implement file watcher and auto reload #483

Closed Foereaper closed 5 months ago

Foereaper commented 5 months ago

This implements automatic script reloading when file changes in the Lua script directory is detected.

This depends on https://github.com/TrinityCore/TrinityCore/pull/30019 to be added, and enforcing EFSW when Eluna is enabled.

I am unsure if any of the other emulators has EFSW support, so it is a TC only feature for now.

Originally based on a patch provided by robinsch.

Shauren commented 5 months ago

https://github.com/TrinityCore/TrinityCore/pull/30019 merged with WITH_FILESYSTEM_WATCHER name