| 7 |
|
import java.io.PrintStream; |
| 8 |
|
import java.net.URL; |
| 9 |
|
import java.util.ResourceBundle; |
| 10 |
– |
import java.util.TreeSet; |
| 10 |
|
|
| 11 |
|
import javax.imageio.ImageIO; |
| 12 |
|
import javax.swing.JFrame; |
| 18 |
|
|
| 19 |
|
import net.oni2.aeinstaller.backend.Paths; |
| 20 |
|
import net.oni2.aeinstaller.backend.Settings; |
| 22 |
– |
import net.oni2.aeinstaller.backend.SizeFormatter; |
| 21 |
|
import net.oni2.aeinstaller.backend.Settings.Platform; |
| 22 |
+ |
import net.oni2.aeinstaller.backend.SizeFormatter; |
| 23 |
|
import net.oni2.aeinstaller.backend.StuffToRefactorLater; |
| 24 |
|
import net.oni2.aeinstaller.backend.depot.DepotManager; |
| 26 |
– |
import net.oni2.aeinstaller.backend.mods.Mod; |
| 25 |
|
import net.oni2.aeinstaller.backend.oni.Installer; |
| 26 |
|
import net.oni2.aeinstaller.backend.oni.OniSplit; |
| 27 |
|
import net.oni2.aeinstaller.gui.MainWin; |
| 54 |
|
BufferedImage img = ImageIO.read(icon); |
| 55 |
|
app.setApplicationIconImage(img); |
| 56 |
|
} catch (IOException e) { |
| 59 |
– |
// TODO Auto-generated catch block |
| 57 |
|
e.printStackTrace(); |
| 58 |
|
} |
| 59 |
|
} |
| 133 |
|
System.out.println(".NET: " + OniSplit.isDotNETInstalled()); |
| 134 |
|
System.out.println("Globalized:" + Installer.isEditionInitialized()); |
| 135 |
|
|
| 136 |
< |
System.out.println("Free space on temp: " + SizeFormatter.format(Paths.getTempPath().getUsableSpace(), 3)); |
| 137 |
< |
System.out.println("Free space on Jar: " + SizeFormatter.format(Paths.getInstallerPath().getUsableSpace(), 3)); |
| 138 |
< |
|
| 136 |
> |
System.out |
| 137 |
> |
.println("Free space on temp: " |
| 138 |
> |
+ SizeFormatter.format(Paths.getTempPath() |
| 139 |
> |
.getUsableSpace(), 3)); |
| 140 |
> |
System.out.println("Free space on Jar: " |
| 141 |
> |
+ SizeFormatter.format(Paths.getInstallerPath() |
| 142 |
> |
.getUsableSpace(), 3)); |
| 143 |
> |
|
| 144 |
|
if (!StuffToRefactorLater.verifyRunningDirectory()) { |
| 145 |
|
JOptionPane.showMessageDialog(null, |
| 146 |
|
basicBundle.getString("invalidPath.text"), |
| 149 |
|
if (!Settings.getDebug()) { |
| 150 |
|
return; |
| 151 |
|
} |
| 150 |
– |
} else { |
| 151 |
– |
Installer.initializeEdition(); |
| 152 |
– |
Installer.install(new TreeSet<Mod>()); |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
SwingUtilities.invokeLater(new Runnable() { |
| 156 |
– |
|
| 155 |
|
public void run() { |
| 156 |
|
try { |
| 157 |
|
MainWin mw = new MainWin(); |