| 433 |
|
} |
| 434 |
|
} |
| 435 |
|
} |
| 436 |
< |
|
| 436 |
> |
|
| 437 |
|
if (instReady) { |
| 438 |
|
System.out.println("Install mods: " + mods.toString()); |
| 439 |
|
|
| 450 |
|
} |
| 451 |
|
return false; |
| 452 |
|
} |
| 453 |
< |
|
| 453 |
> |
|
| 454 |
|
@SuppressWarnings("unused") |
| 455 |
|
private void installDone() { |
| 456 |
|
JOptionPane.showMessageDialog(this, |
| 527 |
|
|
| 528 |
|
private Vector<String> getBasicOniLaunchParams() { |
| 529 |
|
Vector<String> params = new Vector<String>(); |
| 530 |
+ |
File exe = null; |
| 531 |
|
switch (Settings.getPlatform()) { |
| 532 |
|
case WIN: |
| 533 |
< |
params.add(new File(Paths.getEditionBasePath(), "Oni.exe") |
| 534 |
< |
.getPath()); |
| 533 |
> |
exe = new File(Paths.getEditionBasePath(), "Oni.exe"); |
| 534 |
> |
if (exe.exists()) |
| 535 |
> |
params.add(exe.getPath()); |
| 536 |
|
break; |
| 537 |
|
case MACOS: |
| 538 |
< |
params.add(new File(Paths.getEditionBasePath(), |
| 539 |
< |
"Oni.app/Contents/MacOS/Oni").getPath()); |
| 538 |
> |
exe = new File(Paths.getEditionBasePath(), |
| 539 |
> |
"Oni.app/Contents/MacOS/Oni"); |
| 540 |
> |
if (exe.exists()) |
| 541 |
> |
params.add(exe.getPath()); |
| 542 |
|
break; |
| 543 |
|
case LINUX: |
| 544 |
|
String wine = Settings.getWinePath(); |
| 545 |
< |
if (wine != null) { |
| 546 |
< |
params.add(wine); |
| 547 |
< |
params.add(new File(Paths.getEditionBasePath(), "Oni.exe") |
| 548 |
< |
.getPath()); |
| 545 |
> |
exe = new File(Paths.getEditionBasePath(), "Oni.exe"); |
| 546 |
> |
if (exe.exists()) { |
| 547 |
> |
if (wine != null) { |
| 548 |
> |
params.add(wine); |
| 549 |
> |
params.add(exe.getPath()); |
| 550 |
> |
} |
| 551 |
|
} |
| 552 |
|
break; |
| 553 |
|
default: |