| 73 |
|
debug = true; |
| 74 |
|
if (!debug) { |
| 75 |
|
try { |
| 76 |
< |
System.setOut(new PrintStream(new File(Paths.getPrefsPath(), |
| 77 |
< |
"aei_output.log"))); |
| 78 |
< |
System.setErr(new PrintStream(new File(Paths.getPrefsPath(), |
| 79 |
< |
"aei_error.log"))); |
| 76 |
> |
PrintStream ps = new PrintStream(new File(Paths.getPrefsPath(), |
| 77 |
> |
"aei_output.log")); |
| 78 |
> |
System.setOut(ps); |
| 79 |
> |
System.setErr(ps); |
| 80 |
|
} catch (FileNotFoundException e1) { |
| 81 |
|
e1.printStackTrace(); |
| 82 |
|
} |
| 122 |
|
} |
| 123 |
|
JFrame.setDefaultLookAndFeelDecorated(true); |
| 124 |
|
|
| 125 |
+ |
System.out.println(basicBundle.getString("appname") + " " + basicBundle.getString("appversion")); |
| 126 |
|
System.out.println("JarPath: " + Paths.getInstallerPath()); |
| 127 |
|
System.out.println("PrefsPath: " + Paths.getPrefsPath()); |
| 128 |
|
System.out.println("DataPath: " + Paths.getModsPath()); |
| 143 |
|
System.out.println("Free space on Jar: " |
| 144 |
|
+ SizeFormatter.format(Paths.getInstallerPath() |
| 145 |
|
.getUsableSpace(), 3)); |
| 146 |
+ |
System.out.println(); |
| 147 |
|
|
| 148 |
|
if (!OniSplit.isDotNETInstalled()) { |
| 149 |
|
HTMLLinkLabel hll = new HTMLLinkLabel(); |
| 162 |
|
default: |
| 163 |
|
dlUrl = "http://www.go-mono.com/mono-downloads/download.html"; |
| 164 |
|
} |
| 165 |
< |
hll.setText(startupBundle.getString("dotNetMissing.text").replaceAll( |
| 166 |
< |
"%1", String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl))); |
| 165 |
> |
hll.setText(startupBundle |
| 166 |
> |
.getString("dotNetMissing.text") |
| 167 |
> |
.replaceAll( |
| 168 |
> |
"%1", |
| 169 |
> |
String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl))); |
| 170 |
|
JOptionPane.showMessageDialog(null, hll, |
| 171 |
|
startupBundle.getString("dotNetMissing.title"), |
| 172 |
|
JOptionPane.ERROR_MESSAGE); |