Skip to content

Commit

Permalink
fmod启动失败时不会再检查bank内容了
Browse files Browse the repository at this point in the history
  • Loading branch information
MrZ626 committed Jun 25, 2024
1 parent dfd45c4 commit 4a499ef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a499ef

Please sign in to comment.