From db515d1eac8b2883937297fd5d5480cb7788b8a5 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Tue, 17 Dec 2024 14:18:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AEsfx=E5=92=8Cbgm=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E6=9C=AA=E5=AE=9E=E9=99=85=E5=8A=A0=E8=BD=BD=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=96=B9=E6=B3=95=E5=90=8D=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bgm.lua | 4 ++-- sfx.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bgm.lua b/bgm.lua index 0c95a93..a512052 100644 --- a/bgm.lua +++ b/bgm.lua @@ -1,8 +1,8 @@ if not (love.audio and love.sound) then LOG("BGM lib is not loaded (need love.audio & love.sound)") return setmetatable({ - init=function() - error("attempt to use BGM.init, but BGM lib is not loaded (need love.audio & love.sound)") + load=function() + error("attempt to use BGM.load, but BGM lib is not loaded (need love.audio & love.sound)") end },{ __index=function(t,k) diff --git a/sfx.lua b/sfx.lua index 864dd90..6349440 100644 --- a/sfx.lua +++ b/sfx.lua @@ -46,8 +46,8 @@ end if not (love.filesystem and love.audio and love.sound) then LOG("SFX lib is not loaded (need love.filesystem & love.audio & love.sound)") - function SFX.init() - error("attempt to use SFX.init, but SFX lib is not loaded (need love.filesystem & love.audio & love.sound)") + function SFX.load() + error("attempt to use SFX.load, but SFX lib is not loaded (need love.filesystem & love.audio & love.sound)") end return setmetatable(SFX,{ __index=function(t,k)