aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2014-05-24 21:45:47 +0200
committerPacien TRAN-GIRARD2014-05-24 21:45:47 +0200
commit7f66d1282a49ec8d6a5260aab05aa0a49d931b30 (patch)
treec58edd592720393011778d127e54261a773bf0f1 /src
parent8df4f53c72d6f011862ac7eab51538ad81f55b86 (diff)
downloadesieequest-7f66d1282a49ec8d6a5260aab05aa0a49d931b30.tar.gz
Fix wrong extension
Diffstat (limited to 'src')
-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);