diff --git a/app/PdeBase.java b/app/PdeBase.java index 50b358ba1..fad7a31a8 100644 --- a/app/PdeBase.java +++ b/app/PdeBase.java @@ -52,6 +52,7 @@ public class PdeBase { static final int MACOSX = 3; static final int LINUX = 4; static final int IRIX = 5; + static final int UNKNOWN = 5; static int platform; static final String platforms[] = { @@ -86,8 +87,8 @@ public class PdeBase { platform = IRIX; } else { - platform = WINDOWS; // probably safest - System.out.println("unhandled osname: \"" + osname + "\""); + platform = UNKNOWN; + //System.out.println("unhandled osname: \"" + osname + "\""); } } diff --git a/app/PdeSketch.java b/app/PdeSketch.java index 5111af046..6d9d4d5d2 100644 --- a/app/PdeSketch.java +++ b/app/PdeSketch.java @@ -499,13 +499,8 @@ public class PdeSketch { /** * Sets the modified value for the code in the frontmost tab. */ - //public void setCurrentModified(boolean what) { - //public void setModified(boolean what) { public void setModified() { - //System.out.println("setting modified for " + current.program); - //modified = true; current.modified = true; - //editor.header.repaint(); calcModified(); } @@ -521,18 +516,6 @@ public class PdeSketch { editor.header.repaint(); } - /** - * Return true if any of the items are modified. - */ - /* - public boolean isModified() { - for (int i = 0; i < codeCount; i++) { - if (code[i].modified) return true; - } - return false; - } - */ - /** * Save all code in the current sketch. diff --git a/todo.txt b/todo.txt index ba940d7d3..897277567 100644 --- a/todo.txt +++ b/todo.txt @@ -14,9 +14,10 @@ X moving p5 prefs on mac into documents? or inside sketchbook? X Documents -> Processing -> preferences.txt X do the same for windows, with sketchbook as a subfolder -_ don't exit p5 if platform is unknown - -_ "save as" needs to update the editorheader +040716 evening +o don't exit p5 if platform is unknown +o "save as" needs to update the editorheader +X couldn't replicate this _ make additional .pde files embed themselves into the main class