diff --git a/src/elements/Image.lua b/src/elements/Image.lua index d7e63b7..f9c15c3 100644 --- a/src/elements/Image.lua +++ b/src/elements/Image.lua @@ -338,11 +338,7 @@ function Image:addFrame() return self end ---- Updates the specified frame with the provided data ---- @shortDescription Updates the specified frame with the provided data ---- @param frameIndex number The index of the frame to update ---- @param frame table The new frame data ---- @return Image self The Image instance + function Image:updateFrame(frameIndex, frame) local frames = self.get("bimg") frames[frameIndex] = frame diff --git a/tools/generate-annotations.lua b/tools/generate-annotations.lua index 3c55812..43e11a8 100644 --- a/tools/generate-annotations.lua +++ b/tools/generate-annotations.lua @@ -48,10 +48,10 @@ end local function getFilesInLua(path) local files = {} - + local function scanDir(dir) - local p = io.popen('dir "'..dir..'" /b /s') - if not p then return end + local p = io.popen('find "'..dir..'" -name "*.lua"') + if not p then print("Couldn't find "..dir) return end for file in p:lines() do if file:match("%.lua$") then