Ignore:
Timestamp:
Apr 2, 2013, 2:33:46 AM (12 years ago)
Author:
alloc
Message:

AEI2 Updater:

  • Added "-usewd" param
File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater/backend/Paths.java

    r734 r777  
    99 */
    1010public class Paths {
     11
     12        /**
     13         * Use the wd instead of the jar path
     14         */
     15        public static boolean useWorkingDirectory = false;
    1116
    1217        /**
     
    3338         */
    3439        public static File getPrefsPath() {
    35                 return getInstallerPath();
     40                if (useWorkingDirectory) {
     41                        String wd = System.getProperty("user.dir");
     42                        return new File(wd);
     43                } else
     44                        return getInstallerPath();
    3645        }
    3746
Note: See TracChangeset for help on using the changeset viewer.