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

Savestates: Small refactoring #4747

Merged
merged 4 commits into from
Nov 21, 2021
Merged

Conversation

MrCK1
Copy link
Member

@MrCK1 MrCK1 commented Sep 8, 2021

Description of Changes

  • Organized user-created savestates by saving into subfolders with game name and serial.

  • Detect PSX CRC properly, format console titlebar.

  • Fix bug with g_GameStarted and g_GameLoading not being reset on recompiler shutdown.

  • Fix bug with g_GameStarted and g_GameLoading not being set to proper status when loading savestate.

Rationale behind Changes

Cleaner directory for savestates, improve ease of saveestate management. Improve management of game state variables in regards to functionality.

Suggested testing steps

Save/load savestates, look for errors in directory/savestate creation or directory naming. Check for errors/crashes switching games.

Closes #4625, #4744

@MrCK1 MrCK1 added the Core label Sep 8, 2021
@github-actions github-actions bot added the GUI/WX label Sep 8, 2021
@RedDevilus
Copy link
Contributor

Issue:
Based on GameDB names, some have : which are piped into the folder names but this is not allowed to create on windows
image

Ignore all these characters above to fix the issue.

@Squall-Leonhart
Copy link

Make this optional

@MrCK1 MrCK1 force-pushed the savestate_reorg branch 3 times, most recently from aa0c2e0 to 692871d Compare September 11, 2021 01:47
@MrCK1
Copy link
Member Author

MrCK1 commented Sep 14, 2021

Make this optional

Unfortunately due to the changes required and the savestate version bump I will need to make, it will be difficult to make this a separate option. Is there a benefit you see to the old method of keeping everything in the same folder?

@github-actions github-actions bot added the CDVD label Sep 18, 2021
@MrCK1 MrCK1 changed the title Savestates: Use folders for organizing savestates per game Savestates: Small refactoring Sep 19, 2021
@xTVaser
Copy link
Member

xTVaser commented Nov 20, 2021

Tested:

  • booting an iso normally
  • booting an iso that has a unicode gamedb name
  • booting an elf normally
  • booting an elf with a unicode path causes TLB misses
    • occurs on master as well, not a result of this PR

Savestates work as expected in all of those above situations

Copy link
Member

@xTVaser xTVaser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retested after rebase, everything still works as expected except for the existing problem that i made an issue for. I suspect it's already fixed as part of Qt.

@refractionpcsx2 refractionpcsx2 merged commit d29121a into PCSX2:master Nov 21, 2021
weirdbeardgame added a commit to weirdbeardgame/pcsx2 that referenced this pull request Mar 12, 2022
…gear solid that would not boot from path formatting issues
weirdbeardgame added a commit to weirdbeardgame/pcsx2 that referenced this pull request Mar 20, 2022
…gear solid that would not boot from path formatting issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Expansion of savestates
7 participants