From f5871cb064f54bd29b3f3f0d015016c7e329625d Mon Sep 17 00:00:00 2001 From: Jaakko Keranen Date: Wed, 17 Mar 2021 11:35:01 +0200 Subject: App: Added 3rd fallback to find resources.lgr Check the current directory. --- src/app.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/app.c') 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) { /* Load the resources from a file. */ { if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN))) { if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN2))) { - fprintf(stderr, "failed to load resources: %s\n", strerror(errno)); - exit(-1); + if (!load_Embed("resources.lgr")) { + fprintf(stderr, "failed to load resources: %s\n", strerror(errno)); + exit(-1); + } } } } -- cgit v1.2.3