add download command
This commit is contained in:
parent
36204b579f
commit
d4bbf62945
12
lb_store.lua
12
lb_store.lua
@ -381,6 +381,18 @@ COM_AddCommand("lb_known_maps", function(player, map)
|
|||||||
end
|
end
|
||||||
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
|
-- Load the livestore
|
||||||
if isserver then
|
if isserver then
|
||||||
LiveStore = loadStoreFile(LEADERBOARD_FILE)
|
LiveStore = loadStoreFile(LEADERBOARD_FILE)
|
||||||
|
Loading…
Reference in New Issue
Block a user