2003/09/07 03:04:31
[org.ibex.core.git] / src / org / xwt / Main.java
index 64328cf..c61bcf1 100644 (file)
@@ -31,8 +31,14 @@ public class Main {
     /** don't check if all surfaces are gone (and quit) until this is true */
     public static boolean doneInitializing = false;
 
+    public static void main(String[] args) throws Exception {
+       org.xwt.imp.MIPSInterpreter interpreter = new org.xwt.imp.MIPSInterpreter();
+       System.out.println("exit code: " +
+                          interpreter.run(new String[] { "build/mips/freetype.mips", "padua.ttf" }));
+    }
+
     /** common entry point */
-    public static void main(String[] args) {
+    public static void main_(String[] args) {
         try {
             int startargs = 0;
             while (true) {
@@ -103,7 +109,8 @@ public class Main {
             final String initialTemplate_f = initialTemplate;
             ThreadMessage.newthread(new JS.Callable() {
                     public Object call(JS.Array args) throws JS.Exn {
-                        new Box(initialTemplate_f, null);
+                        Box b = new Box();
+                        Template.getTemplate(initialTemplate_f, null).apply(b, null, null, null, 0, 0);
                         doneInitializing = true;
                         if (Surface.allSurfaces.size() == 0) {
                             Log.log(this, "exiting because all surfaces are gone");