Add recovery instructions for saved-game deletion
This commit is contained in:
parent
74035ad320
commit
2715d1992f
|
@ -226,6 +226,8 @@ if args.delete_save:
|
||||||
try:
|
try:
|
||||||
shutil.move(gamesave_path, gamesave_path + "-old")
|
shutil.move(gamesave_path, gamesave_path + "-old")
|
||||||
print("Saved game deleted.")
|
print("Saved game deleted.")
|
||||||
|
print(f"A backup was created at `{gamesave_path}-old`. To restore it, run:")
|
||||||
|
print(f"mv {gamesave_path}-old {gamesave_path}")
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
print("No saved game found.")
|
print("No saved game found.")
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user