ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/backend/Paths.java
(Generate patch)

Comparing AE/installer2/src/net/oni2/aeinstaller/backend/Paths.java (file contents):
Revision 709 by alloc, Thu Mar 21 09:40:09 2013 UTC vs.
Revision 720 by alloc, Thu Mar 21 11:33:53 2013 UTC

# Line 4 | Line 4 | import java.io.File;
4   import java.io.UnsupportedEncodingException;
5   import java.net.URLDecoder;
6  
7 < import net.oni2.settingsmanager.Settings;
7 > import net.oni2.SettingsManager;
8  
9   /**
10   * @author Christian Illy
# Line 31 | Line 31 | public class Paths {
31           * @return Path
32           */
33          public static File getInstallerPath() {
34 <                if (Settings.isDebug()) {
34 >                if (SettingsManager.isDebug()) {
35                          String wd = System.getProperty("user.dir");
36                          return new File(wd);
37                  } else {
38 <                        String jarPath = Settings.class.getProtectionDomain()
38 >                        String jarPath = SettingsManager.class.getProtectionDomain()
39                                          .getCodeSource().getLocation().getPath();
40                          String decodedPath = null;
41                          try {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)