2003/09/19 05:26:46
[org.ibex.core.git] / src / org / xwt / Platform.java
index 93d92f7..4426ca9 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2002 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
 package org.xwt;
 
 import java.lang.reflect.*;
@@ -211,12 +211,24 @@ public class Platform {
 
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getBuiltinInputStream() {
-        return this.getClass().getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
+        try {
+            return new FileInputStream("builtin.xwar");
+        } catch (Exception e) {
+            Log.log(this, e);
+            return null;
+        }
+        //return this.getClass().getClassLoader().getResourceAsStream("org/xwt/builtin.xwar");
     }
 
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getFreetypeInputStream() {
-        return this.getClass().getClassLoader().getResourceAsStream("org/xwt/freetype.mips");
+        try {
+            return new FileInputStream("freetype.mips");
+        } catch (Exception e) {
+            Log.log(this, e);
+            return null;
+        }
+        //return this.getClass().getClassLoader().getResourceAsStream("org/xwt/freetype.mips");
     }
 
     /** returns the value of the environment variable key, or null if no such key exists */