2003/09/23 08:24:59
[org.ibex.core.git] / src / org / xwt / Main.java
index d55d9bb..590d126 100644 (file)
@@ -59,6 +59,7 @@ public class Main {
                 else break;
                 startargs++;
             }
+            /* FIXME
             final String instancename = args.length > startargs + 1 ? args[startargs + 1] : "main";
 
             Platform.forceLoad();
@@ -66,7 +67,6 @@ public class Main {
 
             InputStream is = Platform.getBuiltinInputStream();
             if (is == null) Platform.criticalAbort("unable to load builtin.xwar");
-            Resources.loadArchive(is);
            
             if (Log.on) Log.log(Main.class, "loading scar image");
             PNG png = PNG.decode(new ByteArrayInputStream(Resources.getResource("org.xwt.builtin.scar.png")), "bundled scar image");
@@ -75,6 +75,7 @@ public class Main {
             String initialTemplate = "main";
             Res initialRR = null;
 
+            // FIXME: after applying initial template, check numsurfaces; if zero, exit
             if (args.length > startargs) {
                 if (args[startargs].startsWith("http://")) {
                     if (Log.on) Log.log(Main.class, "downloading xwar");
@@ -130,7 +131,7 @@ public class Main {
             //if (Log.on) Log.log(Main.class, "main thread blocking on new semaphore");
             //new org.xwt.util.Semaphore().block();
             Platform.running();
-
+            */
         } catch (Throwable e) {
             e.printStackTrace();
             Platform.criticalAbort("exception in Main.main(): " + e);