diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-11 22:40:41 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2010-04-11 22:40:41 +0000 |
commit | 9e8849c04c5fd6685c8ffe8c7a0f9d91946b8753 (patch) | |
tree | 4669c62d950e59bd3d80c568203ca12aef321e18 | |
parent | 4b8c720ac530d76d926fd7920d4f1d8c855c564d (diff) | |
download | netsurf-9e8849c04c5fd6685c8ffe8c7a0f9d91946b8753.tar.gz netsurf-9e8849c04c5fd6685c8ffe8c7a0f9d91946b8753.tar.bz2 |
Take the easy way out wrt loading messages files: leave it to the RISC OS frontend to do this.
svn path=/trunk/netsurf/; revision=10374
-rw-r--r-- | desktop/netsurf.c | 6 | ||||
-rw-r--r-- | riscos/gui.c | 9 |
2 files changed, 9 insertions, 6 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c index fcd44f642..f19632026 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -111,8 +111,10 @@ nserror netsurf_init(int *pargc, LOG(("Using '%s' for Options file", options)); options_read(options); - LOG(("Using '%s' as Messages file", messages)); - messages_load(messages); + if (messages != NULL) { + LOG(("Using '%s' as Messages file", messages)); + messages_load(messages); + } lwc_initialise(netsurf_lwc_alloc, NULL, 0); diff --git a/riscos/gui.c b/riscos/gui.c index 774980966..be0ef6844 100644 --- a/riscos/gui.c +++ b/riscos/gui.c @@ -747,9 +747,13 @@ static void gui_init2(int argc, char** argv) /** Normal entry point from OS */ int main(int argc, char** argv) { + char path[40]; + int length; + setbuf(stderr, NULL); -#if RISCOS_MESSAGES_CHOICE + netsurf_init(&argc, &argv, "NetSurf:Choices", NULL); + /* Choose the interface language to use */ ro_gui_choose_language(); @@ -760,9 +764,6 @@ int main(int argc, char** argv) die("Failed to locate Messages resource."); messages_load(path); messages_load("NetSurf:Resources.LangNames"); -#endif - - netsurf_init(&argc, &argv, "NetSurf:Choices", messages); gui_init(argc, argv); |