-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle unexpected (old or weird) OSes that may not support our directory detection. #3823
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,7 @@ public final class Terasology { | |
private static boolean splashEnabled = true; | ||
private static boolean loadLastGame; | ||
|
||
|
||
private Terasology() { | ||
} | ||
|
||
|
@@ -363,6 +364,12 @@ private static void handleLaunchArguments(String[] args) { | |
|
||
} catch (IOException e) { | ||
reportException(e); | ||
try { | ||
PathManager.getInstance().chooseHomePathManually(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If this can recover any exception that was thrown before, there is no need to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah , you have a valid point I just thought that it would be good to report an exception without stopping execution. A Warning sounds like a much better approach :) |
||
} catch (IOException ex) { | ||
reportException(e); | ||
sladyn98 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
System.exit(0); | ||
} | ||
System.exit(0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this be taken out? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes it should 👍 |
||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should/can this be part of
useDefaultHomePath
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be but then it would have to catch the exception inside the
useDefaultHomePath
, moreover this provides a much modular approach and a generic solution to all further weird OSeS