Ignore:
Timestamp:
Jan 17, 2013, 8:52:55 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.86:

  • Added patch-type to tools
Location:
AE/installer2/src/net/oni2/aeinstaller/backend/depot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/depot/DepotConfig.java

    r621 r626  
    11package net.oni2.aeinstaller.backend.depot;
     2
     3import java.util.TreeSet;
    24
    35import net.oni2.aeinstaller.backend.Settings;
     
    6567
    6668        /**
    67          * @return Taxonomy term name for modtype Tool
     69         * @return Taxonomy term names for mods of type Tool
    6870         */
    69         public static String getTaxonomyName_ModType_Tool() {
    70                 return "Tool";
     71        public static TreeSet<String> getTaxonomyName_ModType_Tool() {
     72                TreeSet<String> res = new TreeSet<String>();
     73                res.add("Tool");
     74                res.add("Patch");
     75                return res;
    7176        }
    7277
  • AE/installer2/src/net/oni2/aeinstaller/backend/depot/model/NodeMod.java

    r603 r626  
    153153         */
    154154        public boolean isTool() {
    155                 TaxonomyTerm tt = DepotManager.getInstance().getTaxonomyTerm(
    156                                 DepotConfig.getTaxonomyName_ModType_Tool());
    157                 return getTypes().contains(tt);
     155                HashSet<TaxonomyTerm> types = getTypes();
     156                for (String s : DepotConfig.getTaxonomyName_ModType_Tool()) {
     157                        TaxonomyTerm tt = DepotManager.getInstance().getTaxonomyTerm(s);
     158                        if (types.contains(tt))
     159                                return true;
     160                }
     161                return false;
    158162        }
    159163}
Note: See TracChangeset for help on using the changeset viewer.