save successful

This commit is contained in:
Laserlicht
2026-01-25 15:27:54 +01:00
parent c52dfeda7e
commit 7e7ced8ec1
12 changed files with 42 additions and 17 deletions
+4 -1
View File
@@ -756,17 +756,20 @@ struct DLL_LINKAGE RequestStatistic : public CPackForServer
struct DLL_LINKAGE SaveGame : public CPackForServer
{
SaveGame() = default;
SaveGame(std::string Fname)
SaveGame(std::string Fname, bool NotifySuccess)
: fname(std::move(Fname))
, notifySuccess(NotifySuccess)
{
}
std::string fname;
bool notifySuccess = false;
void visitTyped(ICPackVisitor & visitor) override;
template <typename Handler> void serialize(Handler & h)
{
h & static_cast<CPackForServer &>(*this);
h & notifySuccess;
h & fname;
}
};