Skip to content

Commit

Permalink
Update GLTW.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
GhustOne authored Nov 18, 2022
1 parent 8bd415a commit 25beeea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cheesemenu/libs/GLTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,11 @@ function gltw.read(name, path, addToTable, typeMatched, overrideError)
tableRT = nil
end

local readTable = loadfile(path..name..".lua", "tb")()
if addToTable then
local readTable = assert(loadfile(path..name..".lua", "tb"))()
gltw.add_to_table(readTable, addToTable, typeMatched)
return readTable
else
return loadfile(path..name..".lua", "tb")()
end
return readTable
end

return gltw

0 comments on commit 25beeea

Please sign in to comment.