Ignore:
Timestamp:
Apr 12, 2013, 7:37:24 PM (12 years ago)
Author:
alloc
Message:

AEI2.03:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java

    r807 r809  
    1414
    1515import net.oni2.aeinstaller.backend.Paths;
    16 import net.oni2.aeinstaller.backend.oni.management.Installer;
     16import net.oni2.aeinstaller.backend.oni.management.ModInstallationList;
    1717import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList;
    1818import net.oni2.moddepot.DepotManager;
     
    3232        private HashMap<Integer, Package> mods = new HashMap<Integer, Package>();
    3333        private HashMap<Integer, Package> tools = new HashMap<Integer, Package>();
    34 
    35         private Vector<Integer> currentlyInstalled = new Vector<Integer>();
    3634
    3735        /**
     
    131129                                mods.put(m.getPackageNumber(), m);
    132130                }
    133 
    134                 updateInstalledMods();
    135         }
    136 
    137         /**
    138          * Update the list of currently installed mods
    139          */
    140         public void updateInstalledMods() {
    141                 currentlyInstalled = Installer.getInstalledMods();
    142                 if (currentlyInstalled == null)
    143                         currentlyInstalled = new Vector<Integer>();
    144131        }
    145132
     
    219206        public TreeSet<Package> getInstalledMods() {
    220207                TreeSet<Package> res = new TreeSet<Package>();
    221                 for (int n : Installer.getInstalledMods()) {
     208                for (int n : ModInstallationList.getInstance().getInstalledMods()) {
    222209                        res.add(getPackageByNumber(n));
    223210                }
     
    358345         */
    359346        boolean isModInstalled(Package m) {
    360                 return currentlyInstalled.contains(m.getPackageNumber());
     347                return ModInstallationList.getInstance().isInstalled(m.getPackageNumber());
    361348        }
    362349}
Note: See TracChangeset for help on using the changeset viewer.