Ignore:
Timestamp:
Jan 18, 2013, 4:45:11 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.90:

  • Added blank persist.dat for UnlockLevel to always work
  • Made local paths use the sanitized mod-name
  • Added mod-state column to mod table
Location:
AE/installer2/src/net/oni2/aeinstaller/backend/mods
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/mods/Mod.java

    r623 r631  
    216216        }
    217217
     218        private String getSanitizedPathName() {
     219                return name.replaceAll("[^a-zA-Z0-9_.-]", "_");
     220        }
     221
    218222        /**
    219223         * @return Path to local mod folder
     
    233237                }
    234238
    235                 return new File(Paths.getModsPath(), folderStart);
     239                return new File(Paths.getModsPath(), folderStart
     240                                + getSanitizedPathName());
    236241        }
    237242
     
    254259
    255260        /**
     261         * @return Is mod installed?
     262         */
     263        public boolean isInstalled() {
     264                return ModManager.getInstance().isModInstalled(this);
     265        }
     266
     267        /**
    256268         * @return Name of mod
    257269         */
     
    376388                return exeFile;
    377389        }
     390
    378391        /**
    379392         * @return Icon file of this tool
  • AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java

    r626 r631  
    334334         * @return Is mod installed?
    335335         */
    336         public boolean isModInstalled(Mod m) {
     336        boolean isModInstalled(Mod m) {
    337337                return currentlyInstalled.contains(m.getPackageNumber());
    338338        }
Note: See TracChangeset for help on using the changeset viewer.