diff options
author | the lemons <citrons@mondecitronne.com> | 2023-03-30 02:44:59 -0500 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2023-03-30 02:44:59 -0500 |
commit | 97b4f497aa38894f9b09be57e95a5359447ac1f7 (patch) | |
tree | 19697f8f60c02af2b1804260d7ed0ea10180d3d0 | |
parent | 3458d55440012c49b7315b91dd7b4cd5bb2fcdd5 (diff) |
fix typo
-rw-r--r-- | assets.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -14,7 +14,7 @@ function M.load_from(assets_dir) assets[k] = {} for _, file in ipairs(love.filesystem.getDirectoryItems(dir)) do if love.filesystem.getInfo(dir..file).type == "file" then - local name = file:match "(.+)%.[^%.]+$" or name + local name = file:match "(.+)%.[^%.]+$" or file assets[k][name] = assert(loader(dir..file)) end end |