Lua: add onShutdown

This commit is contained in:
Lion Kortlepel 2021-07-11 20:34:18 +02:00
parent 0acbb70d10
commit d18afdf84b
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -48,6 +48,7 @@ int main(int argc, char** argv) {
bool Shutdown = false;
Application::RegisterShutdownHandler([&Shutdown] { Shutdown = true; });
Application::RegisterShutdownHandler([] { TriggerLuaEvent("onShutdown", false, nullptr, {}, true); });
TServer Server(argc, argv);
TConfig Config;