diff --git a/assets/gamefunc.lua b/assets/gamefunc.lua index c77968ee..afd758cf 100644 --- a/assets/gamefunc.lua +++ b/assets/gamefunc.lua @@ -317,6 +317,14 @@ function task_unloadGame() collectgarbage() end +function _getLatestBank(dt) + TASK.new(function() + MSG.new('info',"Opening URL to bank files...") + TASK.yieldT(dt or 0.626) + love.system.openURL("https://kyzj-my.sharepoint.com/:f:/g/personal/noreply_studio26f_org/ElmKJZYcNpFDhGks9nekrUYBoyr1ZJZgpx1lCyFu6tHXQg?e=vJnaQX") + end) +end + getTouches=love.touch.getTouches isMouseDown=love.mouse.isDown isKeyDown=love.keyboard.isDown diff --git a/assets/scene/setting_out.lua b/assets/scene/setting_out.lua index 652a2d4d..eff7767d 100644 --- a/assets/scene/setting_out.lua +++ b/assets/scene/setting_out.lua @@ -44,6 +44,8 @@ function scene.keyDown(key,isRep) elseif act=='help' then callDict('setting_out') PROGRESS.setSecret('dict_shortcut') + elseif key=='d' then + _getLatestBank() end return true end diff --git a/main.lua b/main.lua index 6bbef8b5..b48e9225 100644 --- a/main.lua +++ b/main.lua @@ -374,11 +374,14 @@ function FMODLoadFunc() -- Will be called again when applying advanced options coreFlag=FMOD.FMOD_INIT_NORMAL, } + local noFile if not loadBank('soundbank/Master.strings.bank') then MSG.new('warn',"Strings bank file load failed") + noFile=true end if not loadBank('soundbank/Master.bank') then MSG.new('warn',"Master bank file load failed") + noFile=true end FMOD.registerMusic((function() if not love.filesystem.getInfo('soundbank/Master.bank') then @@ -391,6 +394,7 @@ function FMODLoadFunc() -- Will be called again when applying advanced options MSG.new('warn',bankName.." bank file not found") else local bankMusic=loadBank('soundbank/'..bankName..'.bank') + noFile=true if not bankMusic then MSG.new('warn',"bank "..bankName.." load failed") else @@ -407,6 +411,8 @@ function FMODLoadFunc() -- Will be called again when applying advanced options end end end + if noFile then _getLatestBank(2.6) end + -- print("--------------------------") -- print("Musics") -- for k,v in next,L do print(k,v)end