Lua: add onShutdown

This commit is contained in:
Lion Kortlepel
2021-09-09 12:13:37 +03:00
parent 9423831937
commit 943159cd40
+1
View File
@@ -55,6 +55,7 @@ int main(int argc, char** argv) try {
bool Shutdown = false;
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
Application::RegisterShutdownHandler([] { TriggerLuaEvent("onShutdown", false, nullptr, {}, true); });
TServer Server(argc, argv);
TConfig Config;