summaryrefslogtreecommitdiff
path: root/imgmanager.cpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-06-30 18:15:03 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-06-30 18:15:03 -0400
commit698ec52d5c056f3584c46e67b199adcfba9f8d2e (patch)
tree3b48df8eed852c2f4ecbdbcaaff9bf29d16f7b50 /imgmanager.cpp
parent220aa6d13a9cb12687139305c6f68eb9cf6f73a1 (diff)
downloadabaddon-portaudio-698ec52d5c056f3584c46e67b199adcfba9f8d2e.tar.gz
abaddon-portaudio-698ec52d5c056f3584c46e67b199adcfba9f8d2e.zip
try loading resources from share, fallback to cwd
Diffstat (limited to 'imgmanager.cpp')
-rw-r--r--imgmanager.cpp3
1 files changed, 2 insertions, 1 deletions
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<Gdk::Pixbuf> 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) {