import org.ibex.util.*;
import org.ibex.plat.*;
import org.ibex.graphics.*;
+import org.ibex.core.builtin.*;
/** Entry point for the Ibex Engine; handles splash screen, initial xwar loading, and argument processing */
public class Main {
System.err.println(" -l user@host email log to user@host");
System.err.println(" -l host:port emit log to TCP socket");
System.err.println(" -l <file> write log to a file on disk");
- System.err.println(" -a check assertions");
+ //System.err.println(" -a check assertions");
System.err.println(" -w <window-id> reserved for libibex");
System.err.println(" -p dump profiling information [not yet supported]");
Runtime.getRuntime().exit(-1);
int startargs = 0;
while (true) {
if (startargs > args.length - 1) printUsage();
- else if (args[startargs].equals("-a")) JS.checkAssertions = true;
+ // FEATURE: This should be enabled at the parser level - there shouldn't even be an assert bytecode
+ /*else if (args[startargs].equals("-a")) JS.checkAssertions = true;*/
else if (args[startargs].equals("-l")) {
startargs++;
StringTokenizer opts = new StringTokenizer(args[startargs], ",");
final Ibex ibex = new Ibex(rr);
org.ibex.graphics.Surface.scarImage =
- Picture.load((Stream)Main.builtin.get("org/ibex/core/builtin/scar.png"),
+ 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);