| 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 |
| 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 { |