aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/esieequest/view/app/UserInterface.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/esieequest/view/app/UserInterface.java b/src/esieequest/view/app/UserInterface.java
index 6e2cb08..37dde80 100644
--- a/src/esieequest/view/app/UserInterface.java
+++ b/src/esieequest/view/app/UserInterface.java
@@ -69,7 +69,7 @@ abstract class UserInterface implements Viewable, ActionListener {
69 private static final String SOUND_EXT = ".ogg"; 69 private static final String SOUND_EXT = ".ogg";
70 70
71 private static final String SAVE_LABEL = "ESIEEquest Game"; 71 private static final String SAVE_LABEL = "ESIEEquest Game";
72 private static final String SAVE_EXT = ".eqg"; 72 private static final String SAVE_EXT = "eqg";
73 73
74 private GameEngine gameEngine; 74 private GameEngine gameEngine;
75 75
@@ -567,7 +567,7 @@ abstract class UserInterface implements Viewable, ActionListener {
567 final int option = fileChooser.showSaveDialog(this.layout); 567 final int option = fileChooser.showSaveDialog(this.layout);
568 if (option == JFileChooser.APPROVE_OPTION) { 568 if (option == JFileChooser.APPROVE_OPTION) {
569 final String path = fileChooser.getSelectedFile().getPath(); 569 final String path = fileChooser.getSelectedFile().getPath();
570 final String filePath = path.endsWith(UserInterface.SAVE_EXT) ? path : path 570 final String filePath = path.endsWith(UserInterface.SAVE_EXT) ? path : path + "."
571 + UserInterface.SAVE_EXT; 571 + UserInterface.SAVE_EXT;
572 this.gameEngine.interpret(actionEvent.getActionCommand() + Text.COMMAND_SEPARATOR 572 this.gameEngine.interpret(actionEvent.getActionCommand() + Text.COMMAND_SEPARATOR
573 + filePath); 573 + filePath);