From 67ded2a02a4f3f4d2a0ab156f3343dc93f4ba04c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 19 Jun 2015 16:29:42 +0100 Subject: This moves message loading out of netsurf_init into each frontend The translated message loading is dependant on configuration of resource location in each frontend, additionally they should have the ability to deal with errors in this loading in a implementation specific manner. This also extends the message loading API to be capable of loading from an inline memory buffer instead of from a file. --- beos/gui.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'beos') diff --git a/beos/gui.cpp b/beos/gui.cpp index 36cc92248..5eabfa848 100644 --- a/beos/gui.cpp +++ b/beos/gui.cpp @@ -1035,7 +1035,9 @@ int main(int argc, char** argv) /* common initialisation */ BPath messages = get_messages_path(); - ret = netsurf_init(messages.Path(), NULL); + ret = messages_add_from_file(messages.Path()); + + ret = netsurf_init(NULL); if (ret != NSERROR_OK) { die("NetSurf failed to initialise"); } @@ -1096,7 +1098,9 @@ int gui_init_replicant(int argc, char** argv) /* common initialisation */ BPath messages = get_messages_path(); - ret = netsurf_init(messages.Path(), NULL); + ret = messages_add_from_file(messages.Path()); + + ret = netsurf_init(NULL); if (ret != NSERROR_OK) { // FIXME: must not die when in replicant! die("NetSurf failed to initialise"); -- cgit v1.2.3