summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 21:17:46 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-10-16 21:17:46 +0300
commit04b626c12cf9fcecabdf6662bd602a81aa498290 (patch)
treee7a361b62fe86e62d19a482b1353844d8a56590b /src/app.c
parent92c6007fe54410dfe097ff493fdc86ad2847857a (diff)
Loading resources from a predetermined path
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index ddd0084f..ac970865 100644
--- a/src/app.c
+++ b/src/app.c
@@ -76,6 +76,10 @@ static const char *dataDir_App_ = "~/AppData/Roaming/fi.skyjake.Lagrange";
76#define EMB_BIN "../../share/lagrange/resources.binary" 76#define EMB_BIN "../../share/lagrange/resources.binary"
77static const char *dataDir_App_ = "~/.config/lagrange"; 77static const char *dataDir_App_ = "~/.config/lagrange";
78#endif 78#endif
79#if defined (LAGRANGE_EMB_BIN) /* specified in build config */
80# undef EMB_BIN
81# define EMB_BIN LAGRANGE_EMB_BIN
82#endif
79#define EMB_BIN2 "../resources.binary" /* fallback from build/executable dir */ 83#define EMB_BIN2 "../resources.binary" /* fallback from build/executable dir */
80static const char *prefsFileName_App_ = "prefs.cfg"; 84static const char *prefsFileName_App_ = "prefs.cfg";
81static const char *stateFileName_App_ = "state.binary"; 85static const char *stateFileName_App_ = "state.binary";