this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

call promptForBaserom

+6 -8
+6 -8
src/main/java/app/Environment.java
··· 545 545 assetDirectories.add(Directories.ENGINE_ASSETS_US.toFile()); 546 546 547 547 usBaseRom = project.getEngine().getBaseRom(); 548 + if (!usBaseRom.exists()) 549 + promptForBaserom(); 548 550 if (!ensureDumpExtracted()) { 549 551 return false; 550 552 } ··· 609 611 /** 610 612 * Prompts the user to select a baserom file, validates it, and copies 611 613 * it to the appropriate location. 612 - * @return the validated ROM file, or null if cancelled 613 614 */ 614 - public static File promptForBaserom() 615 + public static void promptForBaserom() 615 616 { 616 617 OpenFileChooser chooser = new OpenFileChooser( 617 618 null, "Select Paper Mario (US) ROM", "N64 ROM", "z64", "n64", "v64"); 618 619 619 620 if (chooser.prompt() != ChooseDialogResult.APPROVE) 620 - return null; 621 + return; 621 622 622 623 File selected = chooser.getSelectedFile(); 623 624 if (selected == null) 624 - return null; 625 + return; 625 626 626 627 try { 627 628 File validated = RomValidator.validateROM(selected); 628 629 if (validated == null) 629 - return null; 630 + return; 630 631 631 632 // Copy to target location 632 633 FileUtils.copyFile(validated, usBaseRom); 633 634 Logger.log("Baserom installed to " + usBaseRom.getAbsolutePath()); 634 - 635 - return usBaseRom; 636 635 } 637 636 catch (IOException e) { 638 637 Logger.printStackTrace(e); 639 638 showErrorMessage("ROM Copy Error", "Failed to copy ROM: %s", e.getMessage()); 640 - return null; 641 639 } 642 640 } 643 641