整理代码

This commit is contained in:
MrZ626
2021-10-24 00:48:51 +08:00
parent 30093f9db5
commit fd563b732c
3 changed files with 8 additions and 8 deletions

View File

@@ -25,8 +25,8 @@ function FONT.reset()
end
end
function FONT.init(mainFont,secFont)
assert(love.filesystem.getInfo(mainFont))
function FONT.load(mainFont,secFont)
assert(love.filesystem.getInfo(mainFont),"Font file '"..mainFont.."' not exist!")
mainFont=love.filesystem.newFile(mainFont)
if secFont and love.filesystem.getInfo(secFont)then
secFont=love.filesystem.newFile(secFont)