Skip to content

Commit fe29cc5

Browse files
ImpleLeeMrZ626
andauthored
fix many warnings (26F-Studio#889)
* fix many warnings some of them can be solved by using a prototype-based system maybe I can try to use some of these systems to reform backgrounds... * Update app_mahjong.lua --------- Co-authored-by: MrZ_26 <[email protected]>
1 parent 7dd73ef commit fe29cc5

File tree

15 files changed

+15
-19
lines changed

15 files changed

+15
-19
lines changed

main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ SKIN.load{
334334
SFX.init((function()--[Warning] Not loading files here, just get the list of sound needed
335335
local L={}
336336
for _,v in next,fs.getDirectoryItems('media/effect/chiptune/') do
337-
if FILE.isSafe('media/effect/chiptune/'..v,"Dangerous file : %SAVE%/media/effect/chiptune/"..v) then
337+
if FILE.isSafe('media/effect/chiptune/'..v) then
338338
table.insert(L,v:sub(1,-5))
339339
end
340340
end
@@ -343,7 +343,7 @@ end)())
343343
BGM.init((function()
344344
local L={}
345345
for _,v in next,fs.getDirectoryItems('media/music') do
346-
if FILE.isSafe('media/music/'..v,"Dangerous file : %SAVE%/media/music/"..v) then
346+
if FILE.isSafe('media/music/'..v) then
347347
L[v:sub(1,-5)]='media/music/'..v
348348
end
349349
end

parts/backgrounds/aura.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local t
55

66
function back.init()
77
t=math.random()*2600
8-
BG.resize(SCR.w,SCR.h)
98
end
109
function back.update(dt)
1110
t=(t+dt)%6200

parts/backgrounds/bg2.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local shader=SHADER.grad2
55
local t
66
function back.init()
77
t=math.random()*2600
8-
BG.resize(nil,SCR.h)
98
end
109
function back.update(dt)
1110
t=(t+dt)%6200

parts/backgrounds/rainbow.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local shader=SHADER.rgb1
55
local t
66
function back.init()
77
t=math.random()*2600
8-
BG.resize(SCR.w,SCR.h)
98
end
109
function back.update(dt)
1110
t=(t+dt)%6200

parts/backgrounds/rainbow2.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ local shader=SHADER.rgb2
55
local t
66
function back.init()
77
t=math.random()*2600
8-
BG.resize(SCR.w,SCR.h)
98
end
109
function back.update(dt)
1110
t=(t+dt)%6200

parts/bot/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function BOT.new(P,data)
9292
P:setHold(1)
9393
end
9494

95-
local cc=cc or REQUIRE"CCloader"
95+
local cc=REQUIRE"CCloader"
9696
if not cc then
9797
data.type=false
9898
return BOT.new(P,data)

parts/eventsets/blindMesDisp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ return {
66
PLY.draw.applyField(P)
77
GC.setColor(1,1,1,.1)
88
GC.draw(IMG.electric,0,106,0,2.6)
9-
PLY.draw.cancelField(P)
9+
PLY.draw.cancelField()
1010
end,
1111
}

parts/eventsets/secret_grade.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ return {
6464
end
6565
end end
6666
end
67-
PLY.draw.cancelField(P)
67+
PLY.draw.cancelField()
6868
end,
6969
task=function(P)
7070
P.modeData.rankPts=1

parts/eventsets/techrash_u.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ return {
99
GC.setColor(1,.3,.3,.5-i*.04)
1010
GC.rectangle('fill',30*L[i]-30,0,30,600)
1111
end
12-
PLY.draw.cancelField(P)
12+
PLY.draw.cancelField()
1313
end,
1414
hook_drop=function(P)
1515
local C=P.lastPiece

parts/eventsets/tsd_h.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ return {
88
PLY.draw.applyField(P)
99
GC.setColor(1,.3,.3,.2)
1010
GC.rectangle('fill',30*L[1]-30,0,30,600)
11-
PLY.draw.cancelField(P)
11+
PLY.draw.cancelField()
1212
end
1313
end,
1414
hook_drop=function(P)

0 commit comments

Comments
 (0)