summaryrefslogtreecommitdiff
path: root/games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch
diff options
context:
space:
mode:
Diffstat (limited to 'games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch')
-rw-r--r--games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch b/games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch
new file mode 100644
index 00000000..276329d6
--- /dev/null
+++ b/games-util/dfhack/files/dfhack-0.40.24.2/12-fix-lua.patch
@@ -0,0 +1,24 @@
+fix lua
+
+From: eroen <eroen@occam.eroen.eu>
+
+
+---
+ library/lua/dfhack.lua | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/library/lua/dfhack.lua b/library/lua/dfhack.lua
+index 37cb463..f364efb 100644
+--- a/library/lua/dfhack.lua
++++ b/library/lua/dfhack.lua
+@@ -394,8 +394,8 @@ function dfhack.findScript(name)
+ return file
+ end
+ end
+- local path = dfhack.getDFPath()
+- file = path..'/raw/scripts/' .. name .. '.lua'
++ local path = dfhack.getHackPath()
++ file = path..'/scripts/' .. name .. '.lua'
+ if dfhack.filesystem.exists(file) then
+ return file
+ end