Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RoanH committed Apr 12, 2017
1 parent 0f47437 commit fe4ac62
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
1 change: 1 addition & 0 deletions KeysPerSecond/src/me/roan/kps/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ private final boolean loadLegacyFormat(File saveloc){
}
return true;
} catch (Exception e1) {
e1.printStackTrace();
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion KeysPerSecond/src/me/roan/kps/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public static void main(String[] args) {
if(args.length >= 1){
config = args[0];
for(int i = 1; i < args.length; i++){
config += args[i];
config += " " + args[i];
}
System.out.println("Attempting to load config: " + config);
}
Expand Down
4 changes: 2 additions & 2 deletions KeysPerSecond/src/me/roan/kps/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ protected static final void createMenu(){
Rectangle bounds = Main.frame.getGraphicsConfiguration().getBounds();
Main.frame.setLocation(Math.abs(loc.x - bounds.x) < 100 ? bounds.x :
Math.abs((loc.x + Main.frame.getWidth()) - (bounds.x + bounds.width)) < 100 ? bounds.x + bounds.width - Main.frame.getWidth() : loc.x,
Math.abs(loc.y - bounds.y) < 100 ? bounds.y :
Math.abs((loc.y + Main.frame.getHeight()) - (bounds.y + bounds.height)) < 100 ? bounds.y + bounds.height - Main.frame.getHeight() : loc.y);
Math.abs(loc.y - bounds.y) < 100 ? bounds.y :
Math.abs((loc.y + Main.frame.getHeight()) - (bounds.y + bounds.height)) < 100 ? bounds.y + bounds.height - Main.frame.getHeight() : loc.y);
});
exit.addActionListener((e)->{
Main.exit();
Expand Down
25 changes: 0 additions & 25 deletions KeysPerSecondNative/.settings/language.settings.xml

This file was deleted.

0 comments on commit fe4ac62

Please sign in to comment.