diff --git a/Zframework/bgm.lua b/Zframework/bgm.lua index 0b9057ce..dc1a7f5c 100644 --- a/Zframework/bgm.lua +++ b/Zframework/bgm.lua @@ -2,6 +2,8 @@ local BGM={ default=false, getList=function()error("Can't getList before initialized!")end, getCount=function()return 0 end, + loadOne=function()error("Cannot load before init!")end, + loadAll=function()error("Cannot load before init!")end, play=NULL, freshVolume=NULL, stop=NULL, diff --git a/Zframework/image.lua b/Zframework/image.lua index 61a75840..7ccf8eb9 100644 --- a/Zframework/image.lua +++ b/Zframework/image.lua @@ -1,5 +1,7 @@ local IMG={ getCount=function()return 0 end, + loadOne=function()error("Cannot load before init!")end, + loadAll=function()error("Cannot load before init!")end, } function IMG.init(list) IMG.init=nil diff --git a/Zframework/sfx.lua b/Zframework/sfx.lua index b1925ece..196e7691 100644 --- a/Zframework/sfx.lua +++ b/Zframework/sfx.lua @@ -1,5 +1,7 @@ local SFX={ getCount=function()return 0 end, + loadOne=function()error("Cannot load before init!")end, + loadAll=function()error("Cannot load before init!")end, fieldPlay=NULL, play=NULL, fplay=NULL, diff --git a/Zframework/sysFX.lua b/Zframework/sysFX.lua index b2764fe8..7e0616d6 100644 --- a/Zframework/sysFX.lua +++ b/Zframework/sysFX.lua @@ -3,7 +3,6 @@ local gc_setColor,gc_setLineWidth=gc.setColor,gc.setLineWidth local gc_draw,gc_line=gc.draw,gc.line local gc_rectangle,gc_circle=gc.rectangle,gc.circle -local sin,cos=math.sin,math.cos local max,min=math.max,math.min local rnd=math.random local ins,rem=table.insert,table.remove diff --git a/Zframework/voice.lua b/Zframework/voice.lua index 72f5855d..b07ac867 100644 --- a/Zframework/voice.lua +++ b/Zframework/voice.lua @@ -1,6 +1,8 @@ local VOC={ getCount=function()return 0 end, getQueueCount=function()return 0 end, + loadOne=function()error("Cannot load before init!")end, + loadAll=function()error("Cannot load before init!")end, getFreeChannel=NULL, play=NULL, update=NULL, diff --git a/parts/skin.lua b/parts/skin.lua index bdd05d23..7152e852 100644 --- a/parts/skin.lua +++ b/parts/skin.lua @@ -1,5 +1,7 @@ local SKIN={ getCount=function()return 0 end, + loadOne=function()error("Cannot load before init!")end, + loadAll=function()error("Cannot load before init!")end, prevSet=NULL, nextSet=NULL, prev=NULL,