Skip to content

Commit

Permalink
Merge BYTEPATH Mod Loader
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningDroid committed May 23, 2023
1 parent 456364e commit e5b4159
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@ function love.load()
recursiveEnumerate('rooms', room_files)
requireFiles(room_files)

-- load mods from the mods folder.
if love.filesystem.isFused() then
if love.filesystem.mount(love.filesystem.getSourceBaseDirectory(), "base") then
print(love.filesystem.getSourceBaseDirectory())
local mods_to_load = {}
recursiveEnumerate( "base/mods", mods_to_load)
requireFiles(mods_to_load)
end
else
local mods_to_load = {}
recursiveEnumerate( "mods", mods_to_load)
requireFiles(mods_to_load)
end

timer = Timer()
input = Input()
camera = Camera()
Expand Down

0 comments on commit e5b4159

Please sign in to comment.