X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fcore%2FMain.java;h=a870384e178fcfa77308b59d1a727553fa9d830f;hb=1de73c721bbd73f275ba85de292463cdd8a0fbc0;hp=a18af50b2bd3aae8cd907266120019b50aa75f0b;hpb=6a92c2260b3be123e751c3819634228381162340;p=org.ibex.core.git diff --git a/src/org/ibex/core/Main.java b/src/org/ibex/core/Main.java index a18af50..a870384 100644 --- a/src/org/ibex/core/Main.java +++ b/src/org/ibex/core/Main.java @@ -1,4 +1,7 @@ -// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL] +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the GNU General Public License version 2 ("the License"). +// You may not use this file except in compliance with the License. + package org.ibex.core; import java.net.*; @@ -98,9 +101,15 @@ public class Main { org.ibex.graphics.Surface.scarImage = Picture.load(new Stream.FromInputStream(Encode.JavaSourceCode.decode(Scar.data)), - 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); + new Callable() { + private final 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(null, callargs); + } finally { callargs[0] = null; } + return null; } }); Scheduler.init();