-
Notifications
You must be signed in to change notification settings - Fork 0
/
seqselection.lua
33 lines (21 loc) · 854 Bytes
/
seqselection.lua
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
30
--we load the current project from a file in data folder
--if not present, we use a default location
local currentFsInfo=love.filesystem.getInfo('currentproject.lua')
print('current project file ')
print(currentFsInfo)
if currentFsInfo then
--we found a project config
local tmp=love.filesystem.load('currentproject.lua')()
print(' setting project to ' .. tmp )
print('trying to load template for project ')
local template=love.filesystem.load('project/'..tmp..'/template.lua')()
conf=prjTemplates[template]
--TODO conf should be ref to the template,
-- project path should be put somewhere else
conf.prjfld="project/"..tmp.."/"
else
-- highscores=defaulths()
print('no config file , TODO set default project')
conf=prjTemplates[hd43conf.key]
conf.prjfld='project/dflt/'
end