Skip to content

Commit

Permalink
added commented code to determine preference location to debug why ne…
Browse files Browse the repository at this point in the history
…w install does not use my old prefs.
  • Loading branch information
Tobi Delbruck authored and Tobi Delbruck committed May 15, 2024
1 parent 6fe8411 commit 1b9a5e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/net/sf/jaer/graphics/AEViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,10 @@ public AEViewer(JAERViewer jaerViewer, String chipClassName) {
Logger.getLogger("").addHandler(loggingHandler);

log.info("AEViewer starting up...");

// log prefs info to debug location of prefs
// unfortunately this returns null always, seems no way to find out
// log.info(String.format("Preferences storage is located at %s",System.getProperty("java.util.prefs.userRoot")));

if (chipClassName == null) {
aeChipClassName = prefs.get("AEViewer.aeChipClassName", DEFAULT_CHIP_CLASS);
Expand Down

0 comments on commit 1b9a5e0

Please sign in to comment.