feat(db): Force save on mission end
All checks were successful
Build / Build (push) Successful in 29s

This commit introduces a mission event handler that forces a database save with backup when the mission ends.

Key changes:

*   **`XEH_preInit_server.sqf`:** Added an "Ended" mission event handler that calls the `ArmaDragonflyClient` extension with the "savedb" command and logs an info message. This ensures that the database is saved when the mission ends, providing a backup in case of unexpected server shutdowns.
This commit is contained in:
Jacob Schmidt 2025-05-03 19:34:43 -05:00
parent 6857e12d26
commit dc72f88327

View File

@ -1 +1,6 @@
#include "script_component.hpp"
addMissionEventHandler ["Ended", {
"ArmaDragonflyClient" callExtension ["savedb", []];
INFO("Mission ended - forced save with backup");
}];