summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keranen <jaakko.keranen@iki.fi>2021-03-17 11:35:01 +0200
committerJaakko Keranen <jaakko.keranen@iki.fi>2021-03-17 11:35:01 +0200
commitf5871cb064f54bd29b3f3f0d015016c7e329625d (patch)
tree3b11730aca9a01fd9e02b90726d22c87280648bd /src/app.c
parent86b2e7922fec1b47c9099d0442b1afca143317bf (diff)
App: Added 3rd fallback to find resources.lgr
Check the current directory.
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/app.c b/src/app.c
index 73eea762..383b9e2a 100644
--- a/src/app.c
+++ b/src/app.c
@@ -504,8 +504,10 @@ static void init_App_(iApp *d, int argc, char **argv) {
504 /* Load the resources from a file. */ { 504 /* Load the resources from a file. */ {
505 if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN))) { 505 if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN))) {
506 if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN2))) { 506 if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN2))) {
507 fprintf(stderr, "failed to load resources: %s\n", strerror(errno)); 507 if (!load_Embed("resources.lgr")) {
508 exit(-1); 508 fprintf(stderr, "failed to load resources: %s\n", strerror(errno));
509 exit(-1);
510 }
509 } 511 }
510 } 512 }
511 } 513 }