自定义背景拖入无法识别的格式时会提示
This commit is contained in:
@@ -8,9 +8,13 @@ end
|
||||
|
||||
|
||||
function scene.fileDropped(file)
|
||||
love.filesystem.write('conf/customBG',file:read('data'))
|
||||
SETTING.bg='custom'
|
||||
applyBG()
|
||||
if pcall(gc.newImage,file)then
|
||||
love.filesystem.write('conf/customBG',file:read('data'))
|
||||
SETTING.bg='custom'
|
||||
applyBG()
|
||||
else
|
||||
MES.new('error',text.customBGloadFailed)
|
||||
end
|
||||
end
|
||||
|
||||
local fakeBlock={{true}}
|
||||
|
||||
Reference in New Issue
Block a user