Skip to content
Snippets Groups Projects
Commit ea2ae97e authored by neil's avatar neil
Browse files

Overwrite, not override, would be the more accurate word here I believe.

git-svn-id: http://svn.net-core.org/repos/t-engine4@2506 51575b47-30f0-44d4-a5cc-537603b46e54
parent 118885df
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ function _M:generateList()
game:registerDialog(require('engine.dialogs.GetText').new("Enter your character's name", "Name", 2, 25, function(text)
local savename = text:gsub("[^a-zA-Z0-9_-.]", "_")
if fs.exists(("/%s/save/%s/game.teag"):format(mod.short_name, savename)) then
Dialog:yesnoPopup("Override character?", "There is already a character with this name, do you want to override it?", function(ret)
Dialog:yesnoPopup("Overwrite character?", "There is already a character with this name, do you want to overwrite it?", function(ret)
if not ret then Module:instanciate(mod, text, true) end
end, "No", "Yes")
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment