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 )
|
function recorder.Save( score, ticks )
|
||||||
recorder[1] = love.data.pack( "string", "!16<dJ", 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 ) ) )
|
return assert( love.filesystem.write( "demos/"..os.time()..".yod" , table.concat( recorder ) ) )
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue