add download command

This commit is contained in:
Not 2022-11-19 16:47:23 +01:00
parent 36204b579f
commit d4bbf62945
1 changed files with 12 additions and 0 deletions

View File

@ -381,6 +381,18 @@ COM_AddCommand("lb_known_maps", function(player, map)
end
end)
COM_AddCommand("lb_download_live_records", function(player, filename)
if not filename then
CONS_Printf(player, "Usage: lb_download_live_records <filename>")
return
end
if filename:sub(#filename-3) != ".txt" then
filename = $..".txt"
end
dumpStoreToFile(filename, LiveStore)
end, COM_LOCAL)
-- Load the livestore
if isserver then
LiveStore = loadStoreFile(LEADERBOARD_FILE)