mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
tweaks
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user