From d71872af2310ea287d5723f3144548fc168b21c1 Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Mon, 3 Jul 2023 20:31:03 +0200 Subject: [PATCH] Fix texture paths for system-installed builds * window icon * custom touchscreen checkbox sprites --- src/client/clientlauncher.cpp | 2 +- src/client/renderingengine.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 95adaae53..4cbfe183f 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -150,7 +150,7 @@ bool ClientLauncher::run(GameStartData &start_data, const Settings &cmd_args) skin->setSize(gui::EGDS_SCROLLBAR_SIZE, (s32)(14.0f * density)); skin->setSize(gui::EGDS_WINDOW_BUTTON_WIDTH, (s32)(15.0f * density)); if (density > 1.5f) { - std::string sprite_path = porting::path_user + "/textures/base/pack/"; + std::string sprite_path = porting::path_share + "/textures/base/pack/"; if (density > 3.5f) sprite_path.append("checkbox_64.png"); else if (density > 2.0f) diff --git a/src/client/renderingengine.cpp b/src/client/renderingengine.cpp index 9d03a752f..59522f43d 100644 --- a/src/client/renderingengine.cpp +++ b/src/client/renderingengine.cpp @@ -210,7 +210,7 @@ bool RenderingEngine::setupTopLevelWindow() bool RenderingEngine::setWindowIcon() { irr_ptr img(driver->createImageFromFile( - (porting::path_user + "/textures/base/pack/logo.png").c_str())); + (porting::path_share + "/textures/base/pack/logo.png").c_str())); if (!img) { warningstream << "Could not load icon file." << std::endl; return false;