summaryrefslogtreecommitdiff
path: root/frontends/kolibrios/fb/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/kolibrios/fb/gui.c')
-rw-r--r--frontends/kolibrios/fb/gui.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/frontends/kolibrios/fb/gui.c b/frontends/kolibrios/fb/gui.c
index fbaf36f54..d12bdfcf0 100644
--- a/frontends/kolibrios/fb/gui.c
+++ b/frontends/kolibrios/fb/gui.c
@@ -492,7 +492,7 @@ process_cmdline(int argc, char** argv)
/* Remove me! */
feurl = "http://www.kolibrios.org";
-
+
/* NS on KolibriOS does not support option parsing (yet) */
/* while((opt = getopt_long(argc, argv, "f:b:w:h:", */
@@ -2139,15 +2139,16 @@ MKARGV(ARGC, "\0");
char *respath = strdup(argv[0]);
for(int i = strlen(respath) - 1; i > 0; i--) {
if(respath[i] == '/') {
- strcpy((respath+i), "res");
+ strcpy((respath+i+1), "res");
break;
}
}
+ /* Skip the encoding bytes */
+ respath+=2;
ret = netsurf_register(&framebuffer_table);
if (ret != NSERROR_OK)
die("NetSurf operation table failed registration");
-
respaths = fb_init_resource(respath);
/* initialise logging. Abort on failure for KolibriOS. */
@@ -2160,6 +2161,8 @@ MKARGV(ARGC, "\0");
if (ret != NSERROR_OK)
die("Options failed to initialise");
+ LOG("Resources are at : %s", respath);
+
options = filepath_find(respaths, "Choices");
nsoption_read(options, nsoptions);
free(options);