From adfbdbf3974ee20141f983cb46af47712921ec0b Mon Sep 17 00:00:00 2001 From: Dogeek Date: Wed, 1 May 2024 15:15:09 +0200 Subject: [PATCH] Patch main.lua to include mods directories in package search --- main.patch.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.patch.lua b/main.patch.lua index 5fd74a1..8031c74 100644 --- a/main.patch.lua +++ b/main.patch.lua @@ -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