OpenFusionProject / OpenFusion

Open source server for the FusionFall client
MIT License
351 stars 64 forks source link

Call terminate() on Windows #196

Closed CakeLancelot closed 2 years ago

CakeLancelot commented 3 years ago

Gracefully save the database and terminate the server when the user Ctrl+C's or closes the window.

Reference: https://docs.microsoft.com/en-us/windows/console/registering-a-control-handler-function