From 698ec52d5c056f3584c46e67b199adcfba9f8d2e Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Wed, 30 Jun 2021 18:15:03 -0400 Subject: try loading resources from share, fallback to cwd --- imgmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'imgmanager.cpp') diff --git a/imgmanager.cpp b/imgmanager.cpp index 261b8d6..b97083c 100644 --- a/imgmanager.cpp +++ b/imgmanager.cpp @@ -1,5 +1,6 @@ #include "imgmanager.hpp" #include "util.hpp" +#include "abaddon.hpp" ImageManager::ImageManager() { m_cb_dispatcher.connect(sigc::mem_fun(*this, &ImageManager::RunCallbacks)); @@ -112,7 +113,7 @@ Glib::RefPtr ImageManager::GetPlaceholder(int size) { return m_pixs.at(name); try { - auto buf = Gdk::Pixbuf::create_from_file("res/decamarks.png", size, size); + auto buf = Gdk::Pixbuf::create_from_file(Abaddon::Get().GetResPath() + "/decamarks.png", size, size); m_pixs[name] = buf; return buf; } catch (std::exception &e) { -- cgit v1.2.3