File: shared_mods.patch

package info (click to toggle)
minetest 5.6.1%2Bdfsg%2B~1.9.0mt8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 48,628 kB
  • sloc: cpp: 209,002; ansic: 14,537; sh: 914; java: 561; python: 303; xml: 208; makefile: 36
file content (20 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Add lookup path for package modules.
Also look under /usr/share/games/minetest for mods, so that minetest-mod-*
packages actually work.
Author: Tobias Frost <tobi@debian.org>
Forwarded: no
Last-Update: 2022-10-20 <YYYY-MM-DD, last update of the meta-information, optional>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/script/lua_api/l_mainmenu.cpp
+++ b/src/script/lua_api/l_mainmenu.cpp
@@ -653,6 +653,9 @@
 		lua_pushstring(L, component.c_str());
 		lua_setfield(L, -2, fs::AbsolutePath(component).c_str());
 	}
+	lua_pushstring(L, "/usr/share/games/minetest/mods");
+	lua_setfield(L, -2, "share");
+
 	return 1;
 }