aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorIlya Zhuravlev <zhuravlevilya@ya.ru>2013-12-13 20:35:57 +0400
committerPerttu Ahola <celeron55@gmail.com>2014-01-05 12:43:40 +0200
commitb8c3221d556b94b9e14df450ecf8f3be20ba87db (patch)
tree194b5129346ecef454f9eadb5c91ba101d37c5a8 /builtin
parent4d22977509af7b7a7f70bfd5ad9a01c2994d2395 (diff)
downloadminetest-b8c3221d556b94b9e14df450ecf8f3be20ba87db.tar.gz
minetest-b8c3221d556b94b9e14df450ecf8f3be20ba87db.tar.bz2
minetest-b8c3221d556b94b9e14df450ecf8f3be20ba87db.zip
Fix absence of images when compiled with RUN_IN_PLACE=0.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index f8556a388..ecbcce1a0 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -253,7 +253,7 @@ function menu.init()
menu.favorites = engine.get_favorites("local")
end
- menu.defaulttexturedir = engine.get_texturepath() .. DIR_DELIM .. "base" ..
+ menu.defaulttexturedir = engine.get_texturepath_share() .. DIR_DELIM .. "base" ..
DIR_DELIM .. "pack" .. DIR_DELIM
end
@@ -1070,8 +1070,7 @@ function tabbuilder.tab_texture_packs()
local no_screenshot = nil
if not file_exists(screenfile) then
screenfile = nil
- no_screenshot = engine.get_texturepath()..DIR_DELIM..
- "base"..DIR_DELIM.."pack"..DIR_DELIM.."no_screenshot.png"
+ no_screenshot = menu.defaulttexturedir .. "no_screenshot.png"
end
return retval ..