add onFileChanged (fixes #116)

This commit is contained in:
Lion Kortlepel
2022-07-14 01:18:50 +02:00
parent ad414ec5c9
commit a2cc629153
3 changed files with 12 additions and 15 deletions

View File

@@ -220,6 +220,7 @@ void RegisterThread(const std::string& str);
#define beammp_errorf(...) beammp_error(fmt::format(__VA_ARGS__))
#define beammp_infof(...) beammp_info(fmt::format(__VA_ARGS__))
#define beammp_debugf(...) beammp_debug(fmt::format(__VA_ARGS__))
#define beammp_warnf(...) beammp_warn(fmt::format(__VA_ARGS__))
#define beammp_tracef(...) beammp_trace(fmt::format(__VA_ARGS__))
#define beammp_lua_errorf(...) beammp_lua_error(fmt::format(__VA_ARGS__))

View File

@@ -18,6 +18,6 @@ public:
private:
std::shared_ptr<TLuaEngine> mEngine;
fs::path mPath;
std::atomic_bool mShutdown;
std::atomic_bool mShutdown { false };
std::unordered_map<std::string, fs::file_time_type> mFileTimes;
};