Changeset 1032 for java/installer2/src/net/oni2/aeinstaller/backend/oni
- Timestamp:
- Mar 15, 2016, 4:47:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/oni/management/Installer.java
r1023 r1032 198 198 TreeMap<String, Vector<File>> levels = new TreeMap<String, Vector<File>>( 199 199 new NaturalOrderComparator()); 200 log.println("Building sources list"); 200 201 for (File path : foldersOni) { 202 log.println("\tFolder " + path.getPath()); 201 203 for (File levelF : path.listFiles()) { 204 boolean isSecondaryFile = false; 205 log.println("\t\tFolder/file " + levelF.getPath()); 202 206 String fn = levelF.getName().toLowerCase(); 203 207 String levelN = null; … … 207 211 } else if (fn.endsWith(".dat")) { 208 212 levelN = fn.substring(0, fn.lastIndexOf('.')).toLowerCase(); 213 } else if (fn.endsWith(".raw") || fn.endsWith(".sep")) { 214 isSecondaryFile = true; 209 215 } 210 216 if (levelN != null) { 217 log.println("\t\t\tAdded for level " + levelN); 211 218 if (!levels.containsKey(levelN)) 212 219 levels.put(levelN, new Vector<File>()); 213 220 levels.get(levelN).add(levelF); 221 } else if (!isSecondaryFile) { 222 log.println("\t\t\tNot a level file!?"); 214 223 } 215 224 } … … 422 431 423 432 log.println("\t\tPatches for " + level); 424 433 434 log.println("\t\t\tSource files/folders:"); 435 for (File srcFolder : oniLevelFolders.get(level)) { 436 log.println("\t\t\t\t" + srcFolder.getPath()); 437 } 438 439 // Get files to be patched from vanilla.dat 425 440 Vector<String> exportPatterns = new Vector<String>(); 426 // Get files to be patched from vanilla.dat427 441 for (File patch : patches.get(level)) { 428 442 String patternWildcard = patch.getName(); … … 449 463 patternWildcard.indexOf(".oni-patch")); 450 464 patternWildcard = patternWildcard.replace('-', '*'); 451 patternWildcard = patternWildcard + ".oni";452 465 Vector<String> patterns = new Vector<String>(); 453 466 patterns.add(patternWildcard); 467 patternWildcard = patternWildcard + ".oni"; 454 468 final Pattern patternRegex = Pattern.compile( 455 469 patternWildcard.replaceAll("\\*", ".\\*"),
Note:
See TracChangeset
for help on using the changeset viewer.