bgm模块新增瞬间开/关功能

字符串扩展模块不再直接修改全局的string,需要外部自己补充
This commit is contained in:
MrZ626
2021-12-15 11:28:25 +08:00
parent a3d2b7b7f3
commit 6ccdee2a53
5 changed files with 33 additions and 15 deletions

View File

@@ -18,7 +18,7 @@ function FONT.rawset(s)
end
function FONT.load(fonts)
for name,path in next,fonts do
assert(love.filesystem.getInfo(path),("Font file $1($2) not exist!"):repD(name,path))
assert(love.filesystem.getInfo(path),STRING.repD("Font file $1($2) not exist!",name,path))
fontFiles[name]=love.filesystem.newFile(path)
fontCache[name]={}
end