Lua loaded records #9

Merged
Not merged 21 commits from partition into master 2022-12-06 19:05:51 +01:00
Showing only changes of commit d4bbf62945 - Show all commits

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)