- Timestamp:
- Apr 12, 2013, 8:05:40 PM (12 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller/backend/oni/management
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/oni/management/Installer.java
r809 r810 113 113 } 114 114 HashSet<String> levelsAffectedNow = new HashSet<String>(); 115 // TODO: fill set116 115 117 116 File IGMD = new File(Paths.getEditionGDF(), "IGMD"); … … 234 233 applyPatches(levels, foldersPatches, listener, log); 235 234 236 TreeSet<String> levelsAffectedBoth = new TreeSet<String>(); 237 levelsAffectedBoth.addAll(levelsAffectedBefore); 238 levelsAffectedBoth.addAll(levelsAffectedNow); 235 TreeSet<String> levelsAffectedBoth = null; 236 if (levelsAffectedBefore != null) { 237 levelsAffectedBoth = new TreeSet<String>(); 238 levelsAffectedBoth.addAll(levelsAffectedBefore); 239 levelsAffectedBoth.addAll(levelsAffectedNow); 240 } 241 239 242 combineBinaryFiles(levels, levelsAffectedBoth, listener, log); 240 243 combineBSLFolders(mods, listener, log); … … 539 542 "Installing level " + l); 540 543 541 if (levelsUpdated.contains(l.toLowerCase())) { 544 if ((levelsUpdated == null) 545 || levelsUpdated.contains(l.toLowerCase())) { 542 546 ApplicationInvocationResult res = OniSplit.packLevel( 543 547 oniLevelFolders.get(l), new File(Paths.getEditionGDF(), -
java/installer2/src/net/oni2/aeinstaller/backend/oni/management/ModInstallationList.java
r809 r810 30 30 return instance; 31 31 } 32 32 33 /** 34 * @return Currently installed mods 35 */ 33 36 public TreeSet<Integer> getInstalledMods() { 34 37 return mods; 35 38 } 36 39 40 /** 41 * Check if given mod is installed 42 * 43 * @param packageId 44 * Package Id to check for 45 * @return Is mod installed? 46 */ 37 47 public boolean isInstalled(int packageId) { 38 48 return mods.contains(packageId); 39 49 } 40 50 51 /** 52 * Set the mods that are installed by a new installation 53 * 54 * @param mods 55 * List of installed mods 56 */ 41 57 public void setInstalledMods(TreeSet<Integer> mods) { 42 58 this.mods = mods; 43 59 } 44 60 61 /** 62 * @return List of affected levels by current installation 63 */ 45 64 public HashSet<String> getAffectedLevels() { 46 65 return affectedLevels; 47 66 } 48 67 68 /** 69 * Check if given level is affected by current mod installation 70 * 71 * @param level 72 * Level name (e.g. level1_Final) 73 * @return Is level affected? 74 */ 49 75 public boolean isLevelAffected(String level) { 50 76 return affectedLevels.contains(level.toLowerCase()); 51 77 } 52 78 79 /** 80 * Set the levels that are affected by a new mod installation 81 * 82 * @param levels 83 * List of affected level 84 */ 53 85 public void setAffectedLevels(HashSet<String> levels) { 54 86 affectedLevels.clear(); … … 57 89 } 58 90 } 59 91 92 /** 93 * Check if the current state of the ModInstallationList was loaded from the 94 * mod_installation.xml 95 * 96 * @return Loaded from file? 97 */ 60 98 public boolean isLoadedFromFile() { 61 99 return isLoaded;
Note:
See TracChangeset
for help on using the changeset viewer.