整理代码

This commit is contained in:
MrZ626
2021-12-18 16:08:45 +08:00
parent d6ab7e72b2
commit 226e45b24d
7 changed files with 8 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ function scene.sceneInit()
BG.set('cubes')
local fileData=love.filesystem.read("legals.md")
if fileData then
WIDGET.active.texts:setTexts(STRING.split(fileData,'\n'))
WIDGET.active.texts:setTexts(fileData:split('\n'))
else
WIDGET.active.texts:setTexts{"[legals.md not found]"}
end