diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2012-10-20 11:47:25 -0700 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2012-10-20 11:47:25 -0700 | 
| commit | 3d8cd24d93d3ffc192751ecf38afac2144cbb768 (patch) | |
| tree | 134c6b62cb02924b5674380b0b2e236a53fbfc8f /src | |
| parent | fbe93ee62706ba26f2c3f027084cb783c0cbcc0f (diff) | |
SwitcherApp now reads presets.txt from the cwd.routercontrol-0.1
Diffstat (limited to 'src')
| -rw-r--r-- | src/net/tuschhcm/routercontrol/SwitcherApp.java | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/src/net/tuschhcm/routercontrol/SwitcherApp.java b/src/net/tuschhcm/routercontrol/SwitcherApp.java index 9a4b8ae..f92fad7 100644 --- a/src/net/tuschhcm/routercontrol/SwitcherApp.java +++ b/src/net/tuschhcm/routercontrol/SwitcherApp.java @@ -74,12 +74,10 @@ public class SwitcherApp {      private void loadPresets() {
          try {
 -            final String dir = SwitcherApp.class.getProtectionDomain().
 -                getCodeSource().getLocation().getPath();
 -            File presets = new File(dir, "presets.txt");
 +            File presets = new File("presets.txt");
              if (!presets.isFile()) {
 -                System.err.println("Could not find presets.txt in " + dir);
 +                System.err.println("Could not find presets.txt in current directory.");
                  System.exit(1);
              }
 | 
