Changeset 777
- Timestamp:
- Apr 2, 2013, 2:33:46 AM (12 years ago)
- Location:
- java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater/AEInstaller2Updater.java
r734 r777 24 24 public static void main(String[] args) { 25 25 boolean debug = false; 26 for (String a : args) 26 for (String a : args) { 27 27 if (a.equalsIgnoreCase("-debug")) 28 28 debug = true; 29 if (a.equalsIgnoreCase("-usewd")) 30 Paths.useWorkingDirectory = true; 31 } 29 32 if (!debug) { 30 33 try { -
java/AEInstaller2-Updater/src/net/oni2/aeinstaller/updater/backend/Paths.java
r734 r777 9 9 */ 10 10 public class Paths { 11 12 /** 13 * Use the wd instead of the jar path 14 */ 15 public static boolean useWorkingDirectory = false; 11 16 12 17 /** … … 33 38 */ 34 39 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(); 36 45 } 37 46
Note:
See TracChangeset
for help on using the changeset viewer.