From: Novatux Date: Fri, 16 Aug 2013 15:37:01 +0000 (+0200) Subject: Use get_texturepath() instead of get_gamepath()/../textures X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a2380bf76fb8fb0c8429a33d1af936afb09d3db4;p=zefram%2Fminetest%2Fminetest_engine.git Use get_texturepath() instead of get_gamepath()/../textures --- diff --git a/builtin/mm_textures.lua b/builtin/mm_textures.lua index 92a58116..02ddf6bc 100644 --- a/builtin/mm_textures.lua +++ b/builtin/mm_textures.lua @@ -20,8 +20,7 @@ mm_texture = {} -------------------------------------------------------------------------------- function mm_texture.init() - mm_texture.defaulttexturedir = engine.get_gamepath() .. DIR_DELIM .. ".." .. - DIR_DELIM .. "textures" .. DIR_DELIM .. "base" .. + mm_texture.defaulttexturedir = engine.get_texturepath() .. DIR_DELIM .. "base" .. DIR_DELIM .. "pack" .. DIR_DELIM mm_texture.basetexturedir = mm_texture.defaulttexturedir diff --git a/builtin/modstore.lua b/builtin/modstore.lua index e94c174c..90a4c71b 100644 --- a/builtin/modstore.lua +++ b/builtin/modstore.lua @@ -29,8 +29,7 @@ function modstore.init() modstore.modsperpage = 5 - modstore.basetexturedir = engine.get_gamepath() .. DIR_DELIM .. ".." .. - DIR_DELIM .. "textures" .. DIR_DELIM .. "base" .. + modstore.basetexturedir = engine.get_texturepath() .. DIR_DELIM .. "base" .. DIR_DELIM .. "pack" .. DIR_DELIM modstore.current_list = nil