rolling revision, plus reload library paths when changing bits

This commit is contained in:
benfry
2011-11-08 22:55:22 +00:00
parent 418983b02f
commit 339e5056c0
6 changed files with 37 additions and 19 deletions

View File

@@ -50,9 +50,9 @@ import processing.core.*;
* files and images, etc) that comes from that.
*/
public class Base {
static public final int REVISION = 202;
static public final int REVISION = 203;
/** This might be replaced by main() if there's a lib/version.txt file. */
static public String VERSION_NAME = "0202";
static public String VERSION_NAME = "0203";
/** Set true if this a proper release rather than a numbered revision. */
static public boolean RELEASE = false;
/** True if heavy debugging error/log messages are enabled */

View File

@@ -570,8 +570,17 @@ public class Preferences {
}
*/
// If a change has been made between 32- and 64-bit, the libraries need
// to be reloaded so that their native paths are set correctly.
if (Base.isMacOS()) {
set("run.options.bits", bitsThirtyTwoButton.isSelected() ? "32" : "64");
String oldBits = get("run.options.bits");
String newBits = bitsThirtyTwoButton.isSelected() ? "32" : "64";
if (!oldBits.equals(newBits)) {
set("run.options.bits", newBits);
for (Mode m : editor.base.getModeList()) {
m.rebuildLibraryList();
}
}
}
String newSizeText = fontSizeField.getText();