From 02e7d5bb72ea68131e9a3304f88910b0b31b1695 Mon Sep 17 00:00:00 2001 From: benfry Date: Sun, 21 Jul 2002 21:55:49 +0000 Subject: [PATCH] tweaks --- processing/app/PdeEditor.java | 29 ++++++++++++++--------------- processing/app/PdeRunner.java | 5 +++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index f51909f0e..9b5ee1798 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -275,20 +275,19 @@ public class PdeEditor extends Panel { } -#ifdef RECORDER - public void doRecord() { - //doStop(); - doClose(); - PdeRecorder.start(this, graphics.width, graphics.height); - doRun(); - } -#endif - + // #ifdef RECORDER + // public void doRecord() { + // //doStop(); + // doClose(); + // PdeRecorder.start(this, graphics.width, graphics.height); + // doRun(); + // } + //#endif public void doStop() { -#ifdef RECORDER - if (!running) return; -#endif + //#ifdef RECORDER + // if (!running) return; + //#endif terminate(); buttons.clear(); running = false; @@ -1113,9 +1112,9 @@ public class PdeEditor extends Panel { public void finished() { // part of PdeEnvironment -#ifdef RECORDER - PdeRecorder.stop(); -#endif + //#ifdef RECORDER + // PdeRecorder.stop(); + //#endif running = false; buttons.clearRun(); message("Done."); diff --git a/processing/app/PdeRunner.java b/processing/app/PdeRunner.java index 7ef4272bb..8f5f756d6 100644 --- a/processing/app/PdeRunner.java +++ b/processing/app/PdeRunner.java @@ -103,6 +103,9 @@ public class PdeRunner implements Runnable { //String buildPath = //editor.sketchFile.getParent() + File.separator + "build"; String buildPath = "lib" + File.separator + "build"; // TEMPORARY + File buildDir = new File(buildPath); + if (!buildDir.exists()) buildDir.mkdirs(); + String dataPath = editor.sketchFile.getParent() + File.separator + "data"; @@ -148,9 +151,7 @@ public class PdeRunner implements Runnable { editor.error(e); } catch (Exception e) { -#ifndef KVM e.printStackTrace(); -#endif this.stop(); } }