Skip to content

Commit

Permalink
Added developer mode in user.config for ease of access
Browse files Browse the repository at this point in the history
  • Loading branch information
David52920 committed Mar 1, 2021
1 parent 6f48c4d commit 12fa098
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,13 +215,12 @@ public void buildStage() {
multiplexer.addProcessor(this);
multiplexer.addProcessor(stage);
Gdx.input.setInputProcessor(multiplexer);
if(!Constants.AUTO_UPDATE) { // test purposes
String developerMode = userProperties.get("developer-mode");
if (developerMode != null && developerMode.equalsIgnoreCase("on")) {
Constants.PROTOCOL_PORT = 4970;
address.setText("localhost");
code.setText("");
}else {
fillInfo();
}
}
}

public void createPopup() {
Expand Down Expand Up @@ -833,6 +832,7 @@ public HashMap<String,String> getUserProperties(){
put("user.last_ship", prop.getProperty("user.last_ship"));
put("user.volume", prop.getProperty("user.volume"));
put("autoupdate", prop.getProperty("autoupdate"));
put("developer-mode", prop.getProperty("developer-mode"));
}};
}catch (FileNotFoundException e) {
return new HashMap<String,String> (){
Expand Down

0 comments on commit 12fa098

Please sign in to comment.