Silly bug fix: the demo folder should be created unconditionally.

This commit is contained in:
yaw-man 2023-01-27 23:46:15 -04:00
parent 5dfd415d3b
commit 43bba05bc6
1 changed files with 1 additions and 1 deletions

View File

@ -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