Skip to content

Commit

Permalink
updated comments #25
Browse files Browse the repository at this point in the history
  • Loading branch information
cansik committed Jun 12, 2017
1 parent aaaa821 commit 5b9a4ea
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main/java/ch/bildspur/postfx/pass/BasePass.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,15 @@ private String getLibPath() {
.getPath();

if (PApplet.platform == PConstants.WINDOWS) {
// remove leading /
// remove leading slash in windows path
fullJarPath = fullJarPath.substring(1);
}

String jar = Paths.get(fullJarPath).getFileName().toString();

n1 = path.indexOf(jar);
if (PApplet.platform == PConstants.WINDOWS) { //platform Windows
// In Windows, path string starts with "jar file/C:/..."
// so the substring up to the first / is removed.
if (PApplet.platform == PConstants.WINDOWS) {
// remove leading slash in windows path
n0++;
}

Expand Down

0 comments on commit 5b9a4ea

Please sign in to comment.