From 4a499efa010f28020228dde04d714d95bb5bd642 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Wed, 26 Jun 2024 04:27:40 +0800 Subject: [PATCH] =?UTF-8?q?fmod=E5=90=AF=E5=8A=A8=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E6=97=B6=E4=B8=8D=E4=BC=9A=E5=86=8D=E6=A3=80=E6=9F=A5bank?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.lua b/main.lua index 89e6046d..6a05b962 100644 --- a/main.lua +++ b/main.lua @@ -419,6 +419,10 @@ end TASK.new(function() -- Don't initialize studio at first frame, may cause some weird problem DEBUG.yieldT(0.26) FMODLoadFunc() + if tostring(FMOD.studio):find('NULL') then + MSG.new('error',"FMOD Studio initialization failed") + return + end FMOD.setMainVolume(SETTINGS.system.mainVol,true) for name,data in next,SONGBOOK do if FMOD.music.getDesc(name) then