else break;
startargs++;
}
+ /* FIXME
final String instancename = args.length > startargs + 1 ? args[startargs + 1] : "main";
Platform.forceLoad();
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");
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");
//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);