Changeset 809 for java/installer2/src/net/oni2/aeinstaller/backend/packages
- Timestamp:
- Apr 12, 2013, 7:37:24 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java
r807 r809 14 14 15 15 import net.oni2.aeinstaller.backend.Paths; 16 import net.oni2.aeinstaller.backend.oni.management. Installer;16 import net.oni2.aeinstaller.backend.oni.management.ModInstallationList; 17 17 import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList; 18 18 import net.oni2.moddepot.DepotManager; … … 32 32 private HashMap<Integer, Package> mods = new HashMap<Integer, Package>(); 33 33 private HashMap<Integer, Package> tools = new HashMap<Integer, Package>(); 34 35 private Vector<Integer> currentlyInstalled = new Vector<Integer>();36 34 37 35 /** … … 131 129 mods.put(m.getPackageNumber(), m); 132 130 } 133 134 updateInstalledMods();135 }136 137 /**138 * Update the list of currently installed mods139 */140 public void updateInstalledMods() {141 currentlyInstalled = Installer.getInstalledMods();142 if (currentlyInstalled == null)143 currentlyInstalled = new Vector<Integer>();144 131 } 145 132 … … 219 206 public TreeSet<Package> getInstalledMods() { 220 207 TreeSet<Package> res = new TreeSet<Package>(); 221 for (int n : Installer.getInstalledMods()) {208 for (int n : ModInstallationList.getInstance().getInstalledMods()) { 222 209 res.add(getPackageByNumber(n)); 223 210 } … … 358 345 */ 359 346 boolean isModInstalled(Package m) { 360 return currentlyInstalled.contains(m.getPackageNumber());347 return ModInstallationList.getInstance().isInstalled(m.getPackageNumber()); 361 348 } 362 349 }
Note:
See TracChangeset
for help on using the changeset viewer.