From 3ac66029d47a299fdcfab953842948e9c21c83d8 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Thu, 27 Jun 2024 19:38:27 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=80=E4=BA=9B=E5=B7=A6?= =?UTF-8?q?=E4=B8=8A=E8=A7=92=E7=9A=84=E8=AD=A6=E5=91=8A=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/game/exteriorMap.lua | 2 +- main.lua | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/assets/game/exteriorMap.lua b/assets/game/exteriorMap.lua index 5dd1a802..8408080f 100644 --- a/assets/game/exteriorMap.lua +++ b/assets/game/exteriorMap.lua @@ -243,7 +243,7 @@ local function _enterMode(m) FMOD.effect('map_enter') SCN.go('game_out','fade','brik/exterior/'..m.name) else - MSG.new('warn',"Mode file not exist") + MSG.new('warn',"No mode file") end end end diff --git a/main.lua b/main.lua index 0193bb9b..dc732f6a 100644 --- a/main.lua +++ b/main.lua @@ -348,7 +348,7 @@ LANG.setDefault('en') function FMODLoadFunc() -- Will be called again when applying advanced options if not (FMOD.C and FMOD.C2) then - MSG.new('error',"FMOD Studio initialization failed") + MSG.new('error',"FMOD library loaded failed") return end @@ -359,6 +359,7 @@ function FMODLoadFunc() -- Will be called again when applying advanced options studioFlag=bit.bxor(FMOD.FMOD_STUDIO_INIT_SYNCHRONOUS_UPDATE,FMOD.FMOD_INIT_STREAM_FROM_UPDATE,FMOD.FMOD_INIT_MIX_FROM_UPDATE), coreFlag=FMOD.FMOD_INIT_NORMAL, } + if not FMOD.loadBank2('soundbank/Master.strings.bank') then MSG.new('warn',"Strings bank file load failed") end @@ -617,7 +618,7 @@ SCN.addSwapStyle('fastFadeHeader',{ FMODLoadFunc() if tostring(FMOD.studio):find('NULL') or TABLE.getSize(FMOD.banks)==0 then - MSG.new('error',"FMOD Studio initialization failed") + MSG.new('error',"FMOD initialization failed") else FMOD.setMainVolume(SETTINGS.system.mainVol,true) for name,data in next,SONGBOOK do @@ -625,11 +626,11 @@ else data.intensity=FMOD.music.getParamDesc(name,'intensity')~=nil data.section=FMOD.music.getParamDesc(name,'section')~=nil if not FMOD.music.getParamDesc(name,'fade') then - MSG.new('warn',"Missing 'fade' parameter in music '"..name.."'") + MSG.new('warn',"Missing 'fade' parameter in music '"..name.."'",0) end else data.notFound=true - MSG.new('warn',"Music '"..name.."' not found in FMOD") + MSG.new('warn',"Music '"..name.."' not found in FMOD",0) end end end