Changeset 602 for AE/installer2/src/net/oni2/aeinstaller/backend/oni
- Timestamp:
- Jan 10, 2013, 4:39:53 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/oni
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/oni/Installer.java
r600 r602 39 39 } 40 40 41 /** 42 * Install the given set of mods 43 * 44 * @param mods 45 * Mods to install 46 * @param listener 47 * Listener for install progress updates 48 */ 41 49 public static void install(TreeSet<Mod> mods, 42 50 InstallProgressListener listener) { 43 44 51 Vector<File> folders = new Vector<File>(); 45 52 folders.add(Paths.getVanillaOnisPath()); … … 65 72 } 66 73 67 // for (File f : Paths.getModsPath().listFiles()) {68 // File oni = new File(f, "oni");69 // if (oni.exists())70 // folders.add(oni);71 // }72 74 combineBinaryFiles(folders, listener); 73 75 … … 140 142 log.println(); 141 143 } 142 144 143 145 Date end = new Date(); 144 146 log.println("Initialization ended at " + sdf.format(end)); -
AE/installer2/src/net/oni2/aeinstaller/backend/oni/OniSplit.java
r600 r602 77 77 78 78 /** 79 * @return Is Onisplit installed? 80 */ 81 public static boolean isOniSplitInstalled() { 82 return getProgramFile().exists(); 83 } 84 85 /** 79 86 * Export given dat-file to target folder 80 87 * … … 112 119 * @return OniSplit output 113 120 */ 114 public static Vector<String> importLevel(Vector<File> sourceFolders, File targetFile) { 121 public static Vector<String> importLevel(Vector<File> sourceFolders, 122 File targetFile) { 115 123 Vector<String> cmdLine = getProgramInvocation(); 116 124 cmdLine.add(getImportParam()); … … 212 220 if (Settings.getPlatform() != Platform.WIN) 213 221 res.add("mono"); 214 res.add(new File(new File(Paths.getEditionBasePath(), "Tools"), 215 "Onisplit.exe").getPath()); 216 return res; 222 res.add(getProgramFile().getPath()); 223 return res; 224 } 225 226 private static File getProgramFile() { 227 return new File(new File(Paths.getEditionBasePath(), "Tools"), 228 "Onisplit.exe"); 217 229 } 218 230 }
Note:
See TracChangeset
for help on using the changeset viewer.