Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main/java/net/vhati/modmanager/FTLModManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,18 @@ private static void guiInit() {
try {
// Nag if the jar was double-clicked.
if ( new File( "./mods/" ).exists() == false ) {
// Check if the mods folder is just missing for some reason ( also check unix )
if ( new File( "./modman.exe" ) .exists() == true || new File( "./modman-cli.sh" ) .exists() == true ) {
log.warn( "Mods folder gone! Trying to create a new one..." );
new File( "./mods/" ) .mkdirs();
} else {
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\nSlipstream will now exit.", currentPath ) );

throw new ExitException();
}
}

File configFile = new File( "modman.cfg" );
Expand Down