-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from German-Immersive-Railroading-Community/be…
…taSelection feature: Beta selection. - Ability to start the Launcher with the `-eb` and `--enable-beta` startup parameters, which enable the beta area in the `OptionsScene`. - Ability to select all currently open pull requests that are returned by the `beta.json` and select one to test. - Ability to dynamically change the `servers.dat` file to include the test server to the corresponding pull request. - Ability to start the game with the mod that should be tested instead of the original.
- Loading branch information
Showing
6 changed files
with
250 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
46 changes: 46 additions & 0 deletions
46
src/main/java/com/troblecodings/launcher/util/BetaInfo.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.troblecodings.launcher.util; | ||
|
||
public class BetaInfo { | ||
private final String modName; | ||
private final int prNum; | ||
private final String prName; | ||
private final String prDownload; | ||
private final int prPort; | ||
|
||
public BetaInfo(String modName, int prNum, String prName, String prDownload, int prPort) { | ||
this.modName = modName; | ||
this.prNum = prNum; | ||
this.prName = prName; | ||
this.prDownload = prDownload; | ||
this.prPort = prPort; | ||
} | ||
|
||
public String getModName() { | ||
return this.modName; | ||
} | ||
|
||
public int getPrNum() { | ||
return this.prNum; | ||
} | ||
|
||
public String getPrName() { | ||
return this.prName; | ||
} | ||
|
||
public String getPrDownload() { | ||
return this.prDownload; | ||
} | ||
|
||
public int getPrPort() { | ||
return this.prPort; | ||
} | ||
|
||
public String getJarFileName() { | ||
return modName + "-" + prNum + ".jar"; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return modName + " - #" + prNum + ": " + prName; | ||
} | ||
} |
Oops, something went wrong.