Trivial code cleanup
This commit is contained in:
parent
ad6d87a4bf
commit
8f55580ed2
3 changed files with 17 additions and 13 deletions
|
@ -96,12 +96,11 @@ public class FTLModManager {
|
|||
String currentPath = new File( "." ).getAbsoluteFile().getParentFile().getAbsolutePath();
|
||||
|
||||
log.error( String.format( "Slipstream could not find its own folder (Currently in \"%s\"), exiting...", currentPath ) );
|
||||
showErrorDialog( String.format( "Slipstream could not find its own folder.\nCurrently in: %s\n\nRun one of the following instead of the jar...\nWindows: modman.exe or modman_admin.exe\nLinux/OSX: modman.command or modman-cli.sh\n\nThe Mod Manager will now exit.", currentPath ) );
|
||||
showErrorDialog( String.format( "Slipstream could not find its own folder.\nCurrently in: %s\n\nRun one of the following instead of the jar...\nWindows: modman.exe or modman_admin.exe\nLinux/OSX: modman.command or modman-cli.sh\n\nSlipstream will now exit.", currentPath ) );
|
||||
|
||||
throw new ExitException();
|
||||
}
|
||||
|
||||
|
||||
File configFile = new File( "modman.cfg" );
|
||||
|
||||
boolean writeConfig = false;
|
||||
|
@ -220,7 +219,7 @@ public class FTLModManager {
|
|||
}
|
||||
|
||||
if ( datsDir == null ) {
|
||||
showErrorDialog( "FTL resources were not found.\nThe Mod Manager will now exit." );
|
||||
showErrorDialog( "FTL resources were not found.\nSlipstream will now exit." );
|
||||
log.debug( "No FTL dats path found, exiting" );
|
||||
|
||||
throw new ExitException();
|
||||
|
|
|
@ -147,12 +147,13 @@ public class FTLUtilities {
|
|||
public static File promptForDatsDir( Component parentComponent ) {
|
||||
File result = null;
|
||||
|
||||
String message = "";
|
||||
message += "You will now be prompted to locate FTL manually.\n";
|
||||
message += "Look in {FTL dir} to select 'ftl.dat' or 'data.dat'.\n";
|
||||
message += "\n";
|
||||
message += "It may be buried under a subdirectory called 'resources/'.\n";
|
||||
message += "Or select 'FTL.app', if you're on OSX.";
|
||||
String message = ""
|
||||
+ "You will now be prompted to locate FTL manually.\n"
|
||||
+ "Look in {FTL dir} to select 'ftl.dat' or 'data.dat'.\n"
|
||||
+ "\n"
|
||||
+ "It may be buried under a subdirectory called 'resources/'.\n"
|
||||
+ "Or select 'FTL.app', if you're on OSX.";
|
||||
|
||||
JOptionPane.showMessageDialog( parentComponent, message, "Find FTL", JOptionPane.INFORMATION_MESSAGE );
|
||||
|
||||
JFileChooser fc = new JFileChooser();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue