Silly bug fix: the demo folder should be created unconditionally.
This commit is contained in:
parent
5dfd415d3b
commit
43bba05bc6
|
@ -50,7 +50,7 @@ end
|
|||
|
||||
function recorder.Save( score, ticks )
|
||||
recorder[1] = love.data.pack( "string", "!16<dJ", score, ticks )
|
||||
if not love.filesystem.getInfo( "demos" ) then love.filesystem.createDirectory( "demos" ) end
|
||||
love.filesystem.createDirectory( "demos" )
|
||||
return assert( love.filesystem.write( "demos/"..os.time()..".yod" , table.concat( recorder ) ) )
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue