Add download save feature

Add command and web interface button to download saves from instances.
This commit is contained in:
Hornwitser committed 2021-06-01 16:38:56 +02:00
1 parent 35f54a0ee8
commit 12db0d5a84
9 files changed
+225 -1

No files matched your search

+23
View File
@@ -543,6 +543,19 @@ messages.deleteSave = new Request({
},
});
messages.downloadSave = new Request({
type: "download_save",
links: ["control-master"],
permission: "core.instance.save.download",
requestProperties: {
"instance_id": { type: "integer" },
"save": { type: "string" },
},
responseProperties: {
"stream_id": { type: "string" },
},
});
messages.pullSave = new Request({
type: "pull_save",
links: ["master-slave"],
@@ -556,6 +569,16 @@ messages.pullSave = new Request({
},
});
messages.pushSave = new Request({
type: "push_save",
links: ["master-slave"],
requestProperties: {
"instance_id": { type: "integer" },
"stream_id": { type: "string" },
"save": { type: "string" },
},
});
messages.setSaveListSubscriptions = new Request({
type: "set_save_list_subscriptions",
links: ["control-master"],
+5
View File
@@ -391,6 +391,11 @@ definePermission({
title: "Upload save to instance",
description: "Upload savegames to instances.",
});
definePermission({
name: "core.instance.save.download",
title: "Download save from instance",
description: "Download savegames from instances.",
});
definePermission({
name: "core.instance.save.list_subscribe",
title: "Subscribe to save list updatess",