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