- Picture.load((Stream)Main.builtin.get("org/ibex/core/builtin/scar.png"),
- new Task() { public void perform() throws JSExn, UnknownHostException {
- if (Log.on) Log.info(Main.class, "invoking initial template");
- ibex.resolveString(startupTemplate, false).call(new Box(), null, null, null, 1);
+ Picture.load(new Stream.FromInputStream(Encode.JavaSourceCode.decode(Scar.data)),
+ new Callable() {
+ private JS[] callargs = new JS[1];
+ public Object run(Object o) throws JSExn,UnknownHostException {
+ if (Log.on) Log.info(Main.class, "invoking initial template");
+ try {
+ callargs[0] = new Box();
+ ibex.resolveString(startupTemplate, false).call(callargs);
+ } finally { callargs[0] = null; }
+ return null;