summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/UIFile.hpp4
-rw-r--r--src/patchage_config.h8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/UIFile.hpp b/src/UIFile.hpp
index 6eb9d9c..6fc4b94 100644
--- a/src/UIFile.hpp
+++ b/src/UIFile.hpp
@@ -6,7 +6,7 @@
#include "patchage_config.h"
-#ifdef PATCHAGE_BINLOC
+#if PATCHAGE_BUNDLED
# include "binary_location.h"
#endif
@@ -37,7 +37,7 @@ public:
std::cout << "Base name: " << base_name << std::endl;
std::string ui_filename = base_name + ".ui";
-#ifdef PATCHAGE_BINLOC
+#if PATCHAGE_BUNDLED
const std::string bundle = bundle_location();
if (!bundle.empty()) {
const std::string bundle_ui_filename = bundle + "/" + ui_filename;
diff --git a/src/patchage_config.h b/src/patchage_config.h
index e0d0ff0..1797539 100644
--- a/src/patchage_config.h
+++ b/src/patchage_config.h
@@ -85,4 +85,12 @@
# define PATCHAGE_USE_LIGHT_THEME 0
#endif
+#ifndef PATCHAGE_BUNDLED
+# ifdef __APPLE__
+# define PATCHAGE_BUNDLED 1
+# else
+# define PATCHAGE_BUNDLED 0
+# endif
+#endif
+
#endif // PATCHAGE_CONFIG_H