Skip to content

Commit c44e111

Browse files
authored
Merge pull request #5592 from SilasD/mitigate-5591
Fix #5591
2 parents 103835d + 96936a7 commit c44e111

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Template for new versions:
5959
## New Features
6060

6161
## Fixes
62+
- `script-manager`: the ``scripts_modactive`` and ``scripts_modinstalled`` folders of a script-enabled mod will be properly added to the script path search list
6263

6364
## Misc Improvements
6465

library/lua/script-manager.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ function get_mod_paths(installed_subdir, active_subdir)
152152
-- if a world is loaded, process active mods first, and lock to active version
153153
if dfhack.isWorldLoaded() then
154154
for _,path in ipairs(df.global.world.object_loader.object_load_order_src_dir) do
155+
path = dfhack.filesystem.getBaseDir() .. path
155156
-- skip vanilla "mods"
156157
if not path:startswith(INSTALLED_MODS_PATH) then goto continue end
157158
local id = get_mod_id_and_version(path)

0 commit comments

Comments
 (0)