1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix absence of images when compiled with RUN_IN_PLACE=0.

This commit is contained in:
Ilya Zhuravlev 2013-12-13 20:35:57 +04:00 committed by Perttu Ahola
parent 4d22977509
commit b8c3221d55
3 changed files with 14 additions and 3 deletions

View file

@ -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 ..