diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-16 21:17:46 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-10-16 21:17:46 +0300 |
commit | 04b626c12cf9fcecabdf6662bd602a81aa498290 (patch) | |
tree | e7a361b62fe86e62d19a482b1353844d8a56590b /src/app.c | |
parent | 92c6007fe54410dfe097ff493fdc86ad2847857a (diff) |
Loading resources from a predetermined path
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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" |
77 | static const char *dataDir_App_ = "~/.config/lagrange"; | 77 | static 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 */ |
80 | static const char *prefsFileName_App_ = "prefs.cfg"; | 84 | static const char *prefsFileName_App_ = "prefs.cfg"; |
81 | static const char *stateFileName_App_ = "state.binary"; | 85 | static const char *stateFileName_App_ = "state.binary"; |