mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Load files from subfolders in texturepacks
Updated and rebased version of a PR by red-001
This commit is contained in:
parent
ae9b1aa177
commit
05d93c7fa1
7 changed files with 63 additions and 19 deletions
|
@ -29,6 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "threading/mutex_auto_lock.h"
|
||||
#include "client/clientevent.h"
|
||||
#include "client/renderingengine.h"
|
||||
#include "client/tile.h"
|
||||
#include "util/auth.h"
|
||||
#include "util/directiontables.h"
|
||||
#include "util/pointedthing.h"
|
||||
|
@ -1643,9 +1644,8 @@ void Client::afterContentReceived()
|
|||
text = wgettext("Initializing nodes...");
|
||||
RenderingEngine::draw_load_screen(text, guienv, m_tsrc, 0, 72);
|
||||
m_nodedef->updateAliases(m_itemdef);
|
||||
std::string texture_path = g_settings->get("texture_path");
|
||||
if (!texture_path.empty() && fs::IsDir(texture_path))
|
||||
m_nodedef->applyTextureOverrides(texture_path + DIR_DELIM + "override.txt");
|
||||
for (const auto &path : getTextureDirs())
|
||||
m_nodedef->applyTextureOverrides(path + DIR_DELIM + "override.txt");
|
||||
m_nodedef->setNodeRegistrationStatus(true);
|
||||
m_nodedef->runNodeResolveCallbacks();
|
||||
delete[] text;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue