/** 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) {
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");