PNG png = PNG.decode(new ByteArrayInputStream(Base64.decode(scarPicture_png_base64)), "bundled scar image");
Surface.scarPicture = Platform.createPicture(png.getData(), png.getWidth(), png.getHeight());
- Resources.loadArchive(Main.class.getClassLoader().getResourceAsStream("org/xwt/builtin.xwar"));
+ InputStream is = Main.class.getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
+ if (is == null) Platform.criticalAbort("unable to load builtin.xwar");
+ Resources.loadArchive(is);
String initialTemplate = "main";
origin = "file:" + f.getAbsolutePath();
if (f.isDirectory()) {
Resources.loadDirectory(f);
+ Surface.scarAllSurfacesFromNowOn = true;
} else {
initialTemplate = "org.xwt.builtin.splash";
}