Changeset 618 for AE/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Jan 15, 2013, 2:50:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r617 r618 434 434 } 435 435 } 436 436 437 437 if (instReady) { 438 438 System.out.println("Install mods: " + mods.toString()); … … 451 451 return false; 452 452 } 453 453 454 454 @SuppressWarnings("unused") 455 455 private void installDone() { … … 528 528 private Vector<String> getBasicOniLaunchParams() { 529 529 Vector<String> params = new Vector<String>(); 530 File exe = null; 530 531 switch (Settings.getPlatform()) { 531 532 case WIN: 532 params.add(new File(Paths.getEditionBasePath(), "Oni.exe") 533 .getPath()); 533 exe = new File(Paths.getEditionBasePath(), "Oni.exe"); 534 if (exe.exists()) 535 params.add(exe.getPath()); 534 536 break; 535 537 case MACOS: 536 params.add(new File(Paths.getEditionBasePath(), 537 "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()); 538 542 break; 539 543 case LINUX: 540 544 String wine = Settings.getWinePath(); 541 if (wine != null) { 542 params.add(wine); 543 params.add(new File(Paths.getEditionBasePath(), "Oni.exe") 544 .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 } 545 551 } 546 552 break;
Note:
See TracChangeset
for help on using the changeset viewer.