-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsavehs.lua
More file actions
29 lines (21 loc) · 741 Bytes
/
Copy pathsavehs.lua
File metadata and controls
29 lines (21 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--[[
This software is released under the MIT License. See LICENSE.txt for details.
Also, on a non-legal note: I do not recommend reading my code, especially not for educative
purposes. It was written over like three years, and I often forgot how I implemented several
things over time. Also, I was mostly drunk and listening to the Katamari Damacy soundtrack.
So yeah.
]]
function saveHS(hs)
--s = "local hs = {}\nfor i=1,#worlds do\n hs[worlds[i]] = {}\nend\n"
--for i=1,#worlds do
-- local world = worlds[i]
-- local hsw = hs[world]
-- for j=1,#hsw do
-- s = s.."hs['"..world.."']["..j.."] = "..hsw[j].."\n"
-- end
--
--end
--s = s.."\nreturn hs"
s = exportsaves()
love.filesystem.write("awesomesavefile",s)
end