Changeset 621 for AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Timestamp:
- Jan 15, 2013, 9:02:01 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java
r608 r621 182 182 183 183 /** 184 * @return Mods which are already locally available 185 */ 186 public TreeSet<Mod> getLocalAvailableMods() { 187 TreeSet<Mod> res = new TreeSet<Mod>(); 188 for (Mod m : mods.values()) { 189 if (m.isLocalAvailable()) 190 res.add(m); 191 } 192 return res; 193 } 194 195 /** 196 * @return Mods which can be updated 197 */ 198 public TreeSet<Mod> getUpdatableMods() { 199 TreeSet<Mod> res = new TreeSet<Mod>(); 200 for (Mod m : getLocalAvailableMods()) { 201 if (m.isNewerAvailable()) 202 res.add(m); 203 } 204 return res; 205 } 206 207 /** 184 208 * @return Collection of tools valid on this platform and not mandatory 185 209 */ … … 199 223 for (Mod m : tools.values()) { 200 224 if (m.isValidOnPlatform() && m.isMandatoryMod()) 225 res.add(m); 226 } 227 return res; 228 } 229 230 /** 231 * @return Tools which are already locally available 232 */ 233 public TreeSet<Mod> getLocalAvailableTools() { 234 TreeSet<Mod> res = new TreeSet<Mod>(); 235 for (Mod m : tools.values()) { 236 if (m.isLocalAvailable()) 237 res.add(m); 238 } 239 return res; 240 } 241 242 /** 243 * @return Tools which can be updated 244 */ 245 public TreeSet<Mod> getUpdatableTools() { 246 TreeSet<Mod> res = new TreeSet<Mod>(); 247 for (Mod m : getLocalAvailableTools()) { 248 if (m.isNewerAvailable()) 201 249 res.add(m); 202 250 } -
AE/installer2/src/net/oni2/aeinstaller/backend/mods/download/ModDownload.java
r605 r621 80 80 unpacker = new Unpacker(zipFile, targetFolder, this); 81 81 } catch (IOException e) { 82 // TODO Auto-generated catch block83 82 e.printStackTrace(); 84 83 }
Note:
See TracChangeset
for help on using the changeset viewer.