about summary refs log tree commit diff
path: root/src/Xanthous/messages.yaml
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2019-12-31T16·09-0500
committerGriffin Smith <root@gws.fyi>2019-12-31T16·09-0500
commitffc8e793d5ca8a73f8a6ec0f0a4f2efb2c98cf93 (patch)
treee30eba21619cf24ae222b6dbb3c7ab39fc4e927b /src/Xanthous/messages.yaml
parent7e6234e2e9e1307cc61884e53d0457c022543894 (diff)
Prompt before overwriting files when saving
When saving the game to a file that already exists, prompt for whether
or not to overwrite the file.

Since this was the first instance of a prompt triggered by another
prompt, this also had to do a minor fix to swap the order of completing
the prompt and clearing it, so that we don't submit the prompt and then
immediately clear it.
Diffstat (limited to 'src/Xanthous/messages.yaml')
-rw-r--r--src/Xanthous/messages.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Xanthous/messages.yaml b/src/Xanthous/messages.yaml
index 408cb6a1a57b..1a4159b0ac6a 100644
--- a/src/Xanthous/messages.yaml
+++ b/src/Xanthous/messages.yaml
@@ -9,8 +9,8 @@ generic:
   continue: Press enter to continue...
 
 save:
-  location:
-    "Enter filename to save to: "
+  location: "Enter filename to save to: "
+  overwrite: "A file named {{filename}} already exists. Would you like to overwrite it? "
 
 quit:
   confirm: Really quit without saving?