- Timestamp:
- Mar 23, 2015, 7:26:24 PM (10 years ago)
- Location:
- java/installer2/src/net/oni2/aeinstaller
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
java/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r989 r1016 1 1 appname=AE Installer 2 2 appversion=.1 82 appversion=.19 -
java/installer2/src/net/oni2/aeinstaller/backend/oni/management/Installer.java
r988 r1016 29 29 import net.oni2.aeinstaller.backend.oni.PersistDat; 30 30 import net.oni2.aeinstaller.backend.oni.XMLTools; 31 import net.oni2.aeinstaller.backend.oni.management.tools.ToolFileIterator; 32 import net.oni2.aeinstaller.backend.oni.management.tools.ToolFileIteratorEntry; 31 33 import net.oni2.aeinstaller.backend.oni.management.tools.ToolInstallationList; 32 34 import net.oni2.aeinstaller.backend.packages.EBSLInstallType; … … 247 249 combineBSLFolders(mods, listener, log); 248 250 251 copyPlainFiles (log, mods, listener); 252 249 253 copyVideos(log); 250 254 … … 600 604 } 601 605 606 private static void copyPlainFiles(final Logger log, TreeSet<Package> mods, InstallProgressListener listener) { 607 listener.installProgressUpdate(97, 100, "Copying plain files"); 608 log.println(); 609 log.println("Copying plain files from mods"); 610 611 for (Package p : mods) { 612 ToolFileIterator.iteratePlatformToolFiles(p, 613 new ToolFileIteratorEntry() { 614 @Override 615 public void toolFile(File source, File target) { 616 copyPlainFile(source, target, log); 617 } 618 }); 619 } 620 } 621 622 private static void copyPlainFile(File src, File target, Logger log) { 623 try { 624 if (!src.getAbsolutePath().toLowerCase().contains("gamedatafolder")) { 625 File targetFile = CaseInsensitiveFile.getCaseInsensitiveFile( 626 target.getParentFile(), target.getName()); 627 628 // Case mismatch? 629 if (!targetFile.getName().equals(src.getName())) 630 targetFile.delete(); 631 632 FileUtils.copyFile(src, target); 633 } else { 634 log.printlnFmt("Not copying \"%s\": Not within GameDataFolder", src.getPath()); 635 } 636 } catch (IOException e) { 637 e.printStackTrace(); 638 } 639 } 640 641 602 642 private static void unlockLevels(TreeSet<Integer> unlockLevels, Logger log) { 603 643 File dat = new File(Paths.getEditionBasePath(), "persist.dat");
Note:
See TracChangeset
for help on using the changeset viewer.