Skip to content

Commit 1b1022f

Browse files
committed
more work on platform setup, remove nasty jniregistry dll
1 parent 72cb7de commit 1b1022f

File tree

6 files changed

+24
-11
lines changed

6 files changed

+24
-11
lines changed

app/.classpath

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
<classpathentry combineaccessrules="false" kind="src" path="/video"/>
1313
<classpathentry combineaccessrules="false" kind="src" path="/xml"/>
1414
<classpathentry kind="lib" path="lib/antlr.jar"/>
15-
<classpathentry kind="lib" path="lib/registry.jar"/>
1615
<classpathentry kind="lib" path="lib/jna.jar"/>
1716
<classpathentry kind="output" path="bin"/>
1817
</classpath>

app/lib/registry.jar

-25.8 KB
Binary file not shown.

app/src/processing/app/Platform.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,17 @@
3030
/**
3131
* Used by Base for platform-specific tweaking, for instance finding the
3232
* sketchbook location using the Windows registry, or OS X event handling.
33+
*
34+
* The methods in this implementation are used by default, and can be
35+
* overridden by a subclass, if loaded by Base.main().
36+
*
37+
* These methods throw vanilla-flavored Exceptions, so that error handling
38+
* occurs inside Base.
39+
*
40+
* There is currently no mechanism for adding new platforms, as the setup is
41+
* not automated. We could use getProperty("os.arch") perhaps, but that's
42+
* debatable (could be upper/lowercase, have spaces, etc.. basically we don't
43+
* know if name is proper Java package syntax.)
3344
*/
3445
public class Platform {
3546
Base base;

build/shared/lib/registry.jar

-25.8 KB
Binary file not shown.
-64 KB
Binary file not shown.

todo.txt

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
0140 pde
22
X fallback locations for sketchbook and data folders are disabled
3+
X move openFolder, openFolderAvailable, openURL to Platform classes
4+
_ implement windows registry lookups via reflection
5+
_ http://dev.processing.org/bugs/show_bug.cgi?id=723
6+
_ or move to jna for registry?
7+
_ https://jna.dev.java.net/source/browse/jna/trunk/jnalib/contrib/ntservice/src/jnacontrib/win32/Registry.java?rev=293&view=markup
8+
_ try to find someone
9+
X can't get documents/prefs folder on vista
10+
X http://dev.processing.org/bugs/show_bug.cgi?id=585
11+
X closing until further notice
12+
o vista disables aero theme when p5 is run
13+
o http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1196016889
14+
X can't seem to verify this
315

4-
_ move openFolder, openFolderAvailable, openURL to Platform classes
16+
_ move tools.jar into jre/lib folder
517

618
_ "Target VM failed to initialize: VM initialization failed" when trying to run
719
_ http://dev.processing.org/bugs/show_bug.cgi?id=796
@@ -21,11 +33,6 @@ further cleanup for simpler building
2133
_ remove libs from build/shared that are in app/lib
2234
_ update scripts to copy from app/lib
2335
_ since adding tools.jar, jikes can be removed
24-
_ implement windows registry lookups via reflection
25-
_ http://dev.processing.org/bugs/show_bug.cgi?id=723
26-
_ or move to jna for registry?
27-
_ https://jna.dev.java.net/source/browse/jna/trunk/jnalib/contrib/ntservice/src/jnacontrib/win32/Registry.java?rev=293&view=markup
28-
_ try to find someone
2936
_ properly handle non-ascii chars in p5 folder name
3037
_ use javac?
3138
_ the eclipse jdt compiler may be even better
@@ -36,10 +43,6 @@ _ perhaps the get around this by building into sketch folder
3643
_ when non-ascii chars in use, just launch everything externally
3744
_ also fails with export-to-application
3845
_ http://dev.processing.org/bugs/show_bug.cgi?id=252
39-
_ can't get documents/prefs folder on vista
40-
_ http://dev.processing.org/bugs/show_bug.cgi?id=585
41-
_ vista disables aero theme when p5 is run
42-
_ http://processing.org/discourse/yabb_beta/YaBB.cgi?board=SoftwareBugs;action=display;num=1196016889
4346

4447
_ make sure that export is using utf8 for writing the .pde files etc
4548
_ should be primarily loadFile() and saveFile() inside Base

0 commit comments

Comments
 (0)