Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving twice with the same name leads to 2 separate save files #86

Open
tremby opened this issue Apr 1, 2024 · 1 comment
Open

Saving twice with the same name leads to 2 separate save files #86

tremby opened this issue Apr 1, 2024 · 1 comment

Comments

@tremby
Copy link
Contributor

tremby commented Apr 1, 2024

Describe the bug
If I save with the same name a second time, I get 2 separate save files with the same name.

To Reproduce
Steps to reproduce the behavior:

  1. Save game as "abc"
  2. Save game again as "abc"
  3. Go to "load"
  4. See multiple files called "abc"

Expected behavior
Either an error ("file already exists" or something, maybe with the option to cancel or overwrite), or just silently overwriting the same file.

Screenshots

Desktop (please complete the following information):

  • OS: Linux
  • Version Ubuntu 22.04

Additional context
If it's expected that there can be many saves with the same name, having the date/time on them would be helpful.

@segrax
Copy link
Member

segrax commented Apr 1, 2024

Not really sure if this should be classified as a bug or not, as its deliberate and comes from adding support for CF1/2/Demos, but probably also unexpected in the same campaign to have multiple saves with the same name.
Adding date/time isn't really feasible due to limitations in screen space

Guess some code that loops all save games and looks for existing saves with the entered name is probably whats needed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants