From 517625861535f76f1dcb992fff76d23fe4239f7c Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 7 Apr 2018 18:29:50 +0200 Subject: Replaced deprecated filesystem functions --- config/menus/host.lua | 2 +- config/menus/select.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'config/menus') diff --git a/config/menus/host.lua b/config/menus/host.lua index 2b5fac5..102c4c3 100644 --- a/config/menus/host.lua +++ b/config/menus/host.lua @@ -32,7 +32,7 @@ function loadConfigs (dir, process) local items, icons = {}, {} for _,file in pairs(love.filesystem.getDirectoryItems(dir)) do local path = string.format("%s/%s", dir, file) - if love.filesystem.isFile(path) and file ~= "readme.md" then + if love.filesystem.getInfo(path).type == "file" and file ~= "readme.md" then local item = love.filesystem.load(path)() if isAvailable(item) then if process then diff --git a/config/menus/select.lua b/config/menus/select.lua index 9f0ed9b..6534004 100644 --- a/config/menus/select.lua +++ b/config/menus/select.lua @@ -36,7 +36,7 @@ function loadConfigs (dir, process) local items, icons = {}, {} for _,file in pairs(love.filesystem.getDirectoryItems(dir)) do local path = string.format("%s/%s", dir, file) - if love.filesystem.isFile(path) and file ~= "readme.md" then + if love.filesystem.getInfo(path).type == "file" and file ~= "readme.md" then local item = love.filesystem.load(path)() if isAvailable(item) then if process then -- cgit v1.1