Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Veenstra committed Aug 28, 2015
1 parent f0b7332 commit de29ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl/utwente/aveenstra/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static void main(String[] args) {
if (line.hasOption('h')) {
printHelp();
} else {
System.setProperty("net.java.games.input.librarypath", System.getProperty("user.dir") + File.separator + "lib");
System.setProperty("net.java.games.input.librarypath", new File(Main.class.getProtectionDomain().getCodeSource().getLocation().getFile()).toPath().resolveSibling("lib").toString());
try {
System.out.println(Arrays.toString(Preferences.userRoot().node("JavaJoyMon").keys()));
} catch (BackingStoreException e) {
Expand Down

0 comments on commit de29ad4

Please sign in to comment.