From fa3ee3f4ad3df425a07096b2c748c7ca9b1c82da Mon Sep 17 00:00:00 2001 From: copy Date: Tue, 13 Jan 2015 03:01:03 +0100 Subject: [PATCH] load json filesystem as part of initialization process --- src/browser/starter.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/browser/starter.js b/src/browser/starter.js index f20a2acf..d609599a 100644 --- a/src/browser/starter.js +++ b/src/browser/starter.js @@ -120,6 +120,7 @@ function V86Starter(options) url: file.url, handler: handler, size: file.size, + as_text: file.as_text, }); } } @@ -213,12 +214,13 @@ function V86Starter(options) settings.fs9p = fs9p; - //add_file(infos.filesystem.basefs, function() - //{ - fs9p.LoadFilesystem({ - basefsURL: options["filesystem"].basefs, - }); - //}); + add_file({ url: options["filesystem"].basefs, as_text: true, }, function(text) + { + //fs9p.LoadFilesystem({ + // basefsURL: options["filesystem"].basefs, + //}); + fs9p.OnJSONLoaded(text); + }); } var initial_state_buffer;