Repository navigation
More diverse launch options - #20
Merged
Merged
Conversation
Owner
|
Thank you very much. I will check it out over the weekend! |
PhilippvK
reviewed
May 8, 2020
Owner
There was a problem hiding this comment.
I left some feedback but I am open for discussions. Do not feel obliged to implement all the requested changes.
| String server = "127.0.0.1"; //dafault server ip | ||
| String lang = "en_US"; //dafault language package (comes with en_US, fi_FI and sv_SE) | ||
|
|
||
| if(args.length==1){ //support for "legacy" .bats where only ip provided after jar |
| server=args[0]; | ||
| } | ||
|
|
||
| for(int i = 0;i<args.length ; i++) |
Owner
There was a problem hiding this comment.
Some error checking would be useful here.
- Out of bounds possible if there is a missing value for an argument
- check if lang has a valid format and maybe give an error message when there is not localization for a given country code
- Optional: server should bei either localhost, an IPv4 Adress or a Domain/Hostname
Author
There was a problem hiding this comment.
I have made sure out of bounds shouldn't be possible now... But haven't implemented any kind of format checking at least yet.
8000
PhilippvK
approved these changes
May 9, 2020
Owner
|
Great work! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slightly more diverse launch options solutions which allows custom server ip, selecting game language and potentially more.