diff options
author | Jaakko Keranen <jaakko.keranen@iki.fi> | 2021-03-17 11:35:01 +0200 |
---|---|---|
committer | Jaakko Keranen <jaakko.keranen@iki.fi> | 2021-03-17 11:35:01 +0200 |
commit | f5871cb064f54bd29b3f3f0d015016c7e329625d (patch) | |
tree | 3b11730aca9a01fd9e02b90726d22c87280648bd /src | |
parent | 86b2e7922fec1b47c9099d0442b1afca143317bf (diff) |
App: Added 3rd fallback to find resources.lgr
Check the current directory.
Diffstat (limited to 'src')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 | } |