Changeset 631 for AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Timestamp:
- Jan 18, 2013, 4:45:11 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/Mod.java
r623 r631 216 216 } 217 217 218 private String getSanitizedPathName() { 219 return name.replaceAll("[^a-zA-Z0-9_.-]", "_"); 220 } 221 218 222 /** 219 223 * @return Path to local mod folder … … 233 237 } 234 238 235 return new File(Paths.getModsPath(), folderStart); 239 return new File(Paths.getModsPath(), folderStart 240 + getSanitizedPathName()); 236 241 } 237 242 … … 254 259 255 260 /** 261 * @return Is mod installed? 262 */ 263 public boolean isInstalled() { 264 return ModManager.getInstance().isModInstalled(this); 265 } 266 267 /** 256 268 * @return Name of mod 257 269 */ … … 376 388 return exeFile; 377 389 } 390 378 391 /** 379 392 * @return Icon file of this tool -
AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java
r626 r631 334 334 * @return Is mod installed? 335 335 */ 336 publicboolean isModInstalled(Mod m) {336 boolean isModInstalled(Mod m) { 337 337 return currentlyInstalled.contains(m.getPackageNumber()); 338 338 }
Note:
See TracChangeset
for help on using the changeset viewer.