This commit is contained in:
benfry
2002-07-21 21:55:49 +00:00
parent 216e99dc9a
commit 02e7d5bb72
2 changed files with 17 additions and 17 deletions
+14 -15
View File
@@ -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.");
+3 -2
View File
@@ -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();
}
}