Ignore:
Timestamp:
Jan 10, 2013, 4:39:53 PM (12 years ago)
Author:
alloc
Message:

AEI2

Location:
AE/installer2/src/net/oni2/aeinstaller/backend/oni
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/oni/Installer.java

    r600 r602  
    3939        }
    4040
     41        /**
     42         * Install the given set of mods
     43         *
     44         * @param mods
     45         *            Mods to install
     46         * @param listener
     47         *            Listener for install progress updates
     48         */
    4149        public static void install(TreeSet<Mod> mods,
    4250                        InstallProgressListener listener) {
    43 
    4451                Vector<File> folders = new Vector<File>();
    4552                folders.add(Paths.getVanillaOnisPath());
     
    6572                }
    6673
    67                 // for (File f : Paths.getModsPath().listFiles()) {
    68                 // File oni = new File(f, "oni");
    69                 // if (oni.exists())
    70                 // folders.add(oni);
    71                 // }
    7274                combineBinaryFiles(folders, listener);
    7375
     
    140142                                log.println();
    141143                        }
    142                        
     144
    143145                        Date end = new Date();
    144146                        log.println("Initialization ended at " + sdf.format(end));
  • AE/installer2/src/net/oni2/aeinstaller/backend/oni/OniSplit.java

    r600 r602  
    7777
    7878        /**
     79         * @return Is Onisplit installed?
     80         */
     81        public static boolean isOniSplitInstalled() {
     82                return getProgramFile().exists();
     83        }
     84
     85        /**
    7986         * Export given dat-file to target folder
    8087         *
     
    112119         * @return OniSplit output
    113120         */
    114         public static Vector<String> importLevel(Vector<File> sourceFolders, File targetFile) {
     121        public static Vector<String> importLevel(Vector<File> sourceFolders,
     122                        File targetFile) {
    115123                Vector<String> cmdLine = getProgramInvocation();
    116124                cmdLine.add(getImportParam());
     
    212220                if (Settings.getPlatform() != Platform.WIN)
    213221                        res.add("mono");
    214                 res.add(new File(new File(Paths.getEditionBasePath(), "Tools"),
    215                                 "Onisplit.exe").getPath());
    216                 return res;
     222                res.add(getProgramFile().getPath());
     223                return res;
     224        }
     225
     226        private static File getProgramFile() {
     227                return new File(new File(Paths.getEditionBasePath(), "Tools"),
     228                                "Onisplit.exe");
    217229        }
    218230}
Note: See TracChangeset for help on using the changeset viewer.