forked from I2P_Developers/i2p.i2p
only declare one string for determining appdata, use old roaming appdata if it is present.
This commit is contained in:
@ -86,9 +86,9 @@ public class WorkingDir {
|
||||
// Don't mess with existing Roaming Application Data installs,
|
||||
// in case somebody is using roaming appdata for a reason
|
||||
// already. In new installs, use local appdata by default. -idk
|
||||
String oldappdata = System.getenv("APPDATA");
|
||||
if (oldappdata != null) {
|
||||
File checkOld = new File(oldappdata, WORKING_DIR_DEFAULT_WINDOWS);
|
||||
appdata = System.getenv("APPDATA");
|
||||
if (appdata != null) {
|
||||
File checkOld = new File(appdata, WORKING_DIR_DEFAULT_WINDOWS);
|
||||
if (checkOld.exists() && checkOld.isDirectory())
|
||||
home = appdata;
|
||||
}
|
||||
|
Reference in New Issue
Block a user