修复录像文件保存格式错误,多了个换行
This commit is contained in:
@@ -370,7 +370,7 @@ do--function DATA.saveRecording()
|
||||
JSON.encode(getModList()).."\n"..
|
||||
DATA.dumpRecording(GAME.rep)
|
||||
|
||||
love.filesystem.write(fileName,fileHead.."\n"..loveCompress('string','zlib',fileBody))
|
||||
love.filesystem.write(fileName,fileHead..loveCompress('string','zlib',fileBody))
|
||||
ins(REPLAY,fileName)
|
||||
FILE.save(REPLAY,'conf/replay')
|
||||
return true
|
||||
|
||||
@@ -78,7 +78,6 @@ function scene.sceneInit()
|
||||
while true do
|
||||
local b,len=file:read(1)
|
||||
if len==0 then
|
||||
file:close()
|
||||
repList[i]={
|
||||
fileName=REPLAY[i],
|
||||
available=false,
|
||||
@@ -101,11 +100,11 @@ function scene.sceneInit()
|
||||
player=metadata[4],
|
||||
data=file:read(),
|
||||
}
|
||||
file:close()
|
||||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
file:close()
|
||||
else
|
||||
repList[i]={
|
||||
fileName=REPLAY[i],
|
||||
|
||||
Reference in New Issue
Block a user