2003/09/12 01:23:02
[org.ibex.core.git] / src / org / xwt / Platform.java
index 8ee8b20..fcdc9d9 100644 (file)
@@ -57,7 +57,7 @@ public class Platform {
             String os_version = System.getProperty("os.version", "");
             String platform_class = null;
             
-            if (os_name.startsWith("Darwin")) platform_class = "Carbon";
+            if (os_name.startsWith("Darwin")) platform_class = "Darwin";
             else if (vendor.startsWith("Free Software Foundation")) {
                 if (os_name.startsWith("Window")) platform_class = "Win32";
                 else platform_class = "X11";
@@ -212,10 +212,10 @@ public class Platform {
     /** returns an InputStream to the builtin xwar */
     protected InputStream _getBuiltinInputStream() {
        try {
-           Class c = Class.forName("org.xwt.Builtin");
-           Field f = c.getField("encoded");
-           Object o = f.get(null);
-           return new ByteArrayInputStream(org.bouncycastle.util.encoders.Base64.decode((String)o));
+           return new FileInputStream("builtin.xwar");
+           /*
+           return new ByteArrayInputStream(org.bouncycastle.util.encoders.Base64.decode(org.xwt.Builtin.encoded));
+           */
        } catch (Exception e) {
            Log.log(this, e);
            return null;