Allow to define and modify custom names for saved states - #21909
Allow to define and modify custom names for saved states#21909ArthurBELLOC wants to merge 1 commit into
Conversation
|
"fatal error: 'bits/stdc++.h' file not found" ?? What needs that include? |
There was a problem hiding this comment.
I've left some questions and/or suggestions. There are 2 things I haven't addressed though:
- Does the change from
GetScreenshotTitletoGetCustomNamehide any potentially notable (for the user) info? - Does this code really generate empty .txt files for savestates without custom names?
|
Hello, Thank you for your response. I'll try to get everything fixed. To answer the questions :
No, it does not. It just show the custom name if there is one otherwise it is the same previous layout with the date and time of the save state.
Yes. Every save state has no custom name by default, but the empty .txt is created. |
83f3d5f to
8d10559
Compare
|
Thank you for the feedbacks. |
|
Nice! I've looked it over again. If we mentally eliminate the variable, we'll get |
8d10559 to
5e8ecd9
Compare
|
@Nemoumbra You are absolutely right. |
|
Well, I can approve it, but we still need hrydgard's opinion. |
|
It's starting to look pretty good. I'll look into it in more detail soon. |
Feature requested in issue #21598.
Now saving a state creates a .txt file with the same name in the same location.
A new button has been added in the grid when you right click on the screenshot of the save state, allowing to type any custom name that will then be displayed in the pause menu next to the save state date.
The name is written and retrieved in that same .txt file so there is no issue with special characters.
This is my first commit, so I might have forgotten some things.
Thank you for taking the time to review that feature.