Lua: add onShutdown

This commit is contained in:
Lion Kortlepel
2021-07-11 20:34:18 +02:00
parent 9423831937
commit 943159cd40

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;