From 2663e4d62965dffaef467df3e8a151b94774b8df Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 9 May 2021 21:22:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=A8=A1=E5=9D=97=E6=94=AF?= =?UTF-8?q?=E6=8C=81directoryDropped=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 3 +++ Zframework/scene.lua | 2 ++ 2 files changed, 5 insertions(+) diff --git a/Zframework/init.lua b/Zframework/init.lua index 10b7070a..a50514ae 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -329,6 +329,9 @@ function love.receiveData(id,data)end function love.filedropped(file) if SCN.fileDropped then SCN.fileDropped(file)end end +function love.directorydropped(dir) + if SCN.directoryDropped then SCN.directoryDropped(dir)end +end local lastGCtime=0 function love.lowmemory() if TIME()-lastGCtime>6.26 then diff --git a/Zframework/scene.lua b/Zframework/scene.lua index 360123fa..7d03a638 100644 --- a/Zframework/scene.lua +++ b/Zframework/scene.lua @@ -35,6 +35,7 @@ local SCN={ gamepadDown=false, gamepadUp=false, fileDropped=false, + directoryDropped=false, resize=false, socketRead=false, }--Scene datas, returned @@ -81,6 +82,7 @@ function SCN.init(s,org) SCN.gamepadDown=S.gamepadDown SCN.gamepadUp=S.gamepadUp SCN.fileDropped=S.fileDropped + SCN.directoryDropped=S.directoryDropped SCN.resize=S.resize SCN.socketRead=S.socketRead if S.sceneInit then S.sceneInit(org)end