Skip to content

Commit

Permalink
Patch main.lua to include mods directories in package search
Browse files Browse the repository at this point in the history
  • Loading branch information
sbordeyne committed May 1, 2024
1 parent 23edabe commit adfbdbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.patch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ love.filesystem.setIdentity(love.filesystem.getIdentity(),false)

local saveDir = love.filesystem.getSaveDirectory()
local balamodDir = saveDir .. "/balamod"
package.path = package.path .. ";" .. balamodDir .. "/?.lua"
local modsDir = saveDir .. "/mods"
package.path = package.path .. ";" .. balamodDir .. "/?.lua" .. ";" .. modsDir .. "/?.lua"
if love.system.getOS() == "Windows" or love.system.getOS() == "Linux" then
package.cpath = package.cpath .. ";" .. balamodDir .. "/?.dll"
elseif love.system.getOS() == "OS X" then
Expand Down

0 comments on commit adfbdbf

Please sign in to comment.