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

Limit total number of save states in Load State Window #616

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

hanzi
Copy link
Collaborator

@hanzi hanzi commented Jan 13, 2025

Description

The Load State window crashes once a certain number of loadable states is reached. I haven't tested what that exact 'certain number' is.

We are already limiting the number of autosaves we display to 3.

But 'manual' save states (this includes those created with Ctrl+S, but also save states when encountering a shiny/CCF) are not filtered and/or limited.

This PR adds a limit of 128 total save states. That number has been chosen arbitrarily, but it doesn't crash my test profile anymore so I guess that's alright.

Checklist

  • Black Linter has been ran, using --line-length 120 argument
  • Wiki has been updated (if relevant)

The Load State window crashes once a certain number of loadable states is reached. I haven't tested what that exact 'certain number' is.

We are already limiting the number of autosaves we display to 3.

But 'manual' save states (this includes those created with `Ctrl+S`, but also save states when encountering a shiny/CCF) are not filtered and/or limited.

This PR adds a limit of 128 total save states. That number has been chosen arbitrarily, but it doesn't crash my test profile anymore so I guess that's alright.
@pekempy pekempy merged commit 9cfe62e into 40Cakes:main Jan 13, 2025
1 check passed
@hanzi hanzi deleted the limit-save-state-on-load branch January 13, 2025 15:22
40Cakes pushed a commit that referenced this pull request Jan 22, 2025
The Load State window crashes once a certain number of loadable states is reached. I haven't tested what that exact 'certain number' is.

We are already limiting the number of autosaves we display to 3.

But 'manual' save states (this includes those created with `Ctrl+S`, but also save states when encountering a shiny/CCF) are not filtered and/or limited.

This PR adds a limit of 128 total save states. That number has been chosen arbitrarily, but it doesn't crash my test profile anymore so I guess that's alright.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants