Index: single/07.Constellar vs Evilswarm.lua ================================================================== --- single/07.Constellar vs Evilswarm.lua +++ single/07.Constellar vs Evilswarm.lua @@ -29,5 +29,14 @@ aux.BeginPuzzle() _G["通关邀请"]() +function GetCurrentFileName() + local info = debug.getinfo(2, "S") + local filePath = info.source + local fileName = string.match(filePath, "@(.+)$") + return fileName +end + +local currentFileName = GetCurrentFileName() +print("当前文件名: " .. currentFileName)