Skip to content

Migrate Savestates Home Menu#16340

Merged
elad335 merged 8 commits into
RPCS3:masterfrom
Darkhost1999:home_menu_savestate
Nov 23, 2024
Merged

Migrate Savestates Home Menu#16340
elad335 merged 8 commits into
RPCS3:masterfrom
Darkhost1999:home_menu_savestate

Conversation

@Darkhost1999

@Darkhost1999 Darkhost1999 commented Nov 22, 2024

Copy link
Copy Markdown
Contributor

In preparation for Savestate Slots move all the current code to a subpage of Savestates

Screenshot 2024-11-22 164446
Screenshot 2024-11-22 164459

Functionality remains intact, Just simply moving the current code to a dedicated file and creating a new page then applying the layout inside of the new page.
Also a misc change with building.md to update the information to msvc2022 instead of 2019 post QT 6.8.0 merge.
Another misc change I was saving for a bigger PR like this to revert a bad decision that didn't work.

The thought about future functionality to add coming soon is Savestate Slot 1, Savestate Slot 2, and Savestate Slot 3. Then Reload Savestate Slot 1, Reload Savestate Slot 2, and Reload Savestate Slot 3.
Why 3 slots?
All the games I have observed have up to 3 games. Kingdom Hearts launchers have 2 games + 1 cinema, Sly Cooper trilogy has 3 games, Devil May Cry HD Collection has 3 games. If anybody has any feedback about a game that has 4 or more games in its launcher please let me know. Journey Collector's Edition doesn't count because the games are installed individually into RPCS3 and can be launched separately without issue.

Create necessary files to move the savestates overlay functions to a new subpage in preparation for slots.
QT 6.8.0 doesn't include an msvc 2019 option. So to keep up with the latest trends update the building.md links and examples to msvc 2022.

#include "overlay_home_menu_page.h"
#include "overlay_home_menu_settings.h"
#include "overlay_home_menu_savestate.h"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why is this included here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I saw settings.h and thought that would be the best place for savestate.h for the build to compile. else I get

3>C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30): error C2065: 'home_menu_savestate': undeclared identifier
3>(compiling source file '/Emu/RSX/Overlays/HomeMenu/overlay_home_menu_main_menu.cpp')
3>C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,18): error C2672: 'std::make_shared': no matching overloaded function found
3>(compiling source file '/Emu/RSX/Overlays/HomeMenu/overlay_home_menu_main_menu.cpp')
3>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34604\include\memory(2959,44):
3>    could be 'std::shared_ptr<_Ty> std::make_shared(const remove_extent<_Ty>::type &)'
3>        C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30):
3>        'std::make_shared': invalid template argument for '_Ty', type expected
3>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34604\include\memory(2950,44):
3>    or       'std::shared_ptr<_Ty> std::make_shared(void)'
3>        C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30):
3>        'std::make_shared': invalid template argument for '_Ty', type expected
3>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34604\include\memory(2945,44):
3>    or       'std::shared_ptr<_Ty> std::make_shared(const size_t,const remove_extent<_Ty>::type &)'
3>        C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30):
3>        'std::make_shared': invalid template argument for '_Ty', type expected
3>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34604\include\memory(2940,44):
3>    or       'std::shared_ptr<_Ty> std::make_shared(const size_t)'
3>        C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30):
3>        'std::make_shared': invalid template argument for '_Ty', type expected
3>    C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34604\include\memory(2903,44):
3>    or       'std::shared_ptr<_Ty> std::make_shared(_Types ...)'
3>        C:\Users\bryso\Documents\GitHub\rpcs3\rpcs3\Emu\RSX\Overlays\HomeMenu\overlay_home_menu_main_menu.cpp(76,30):
3>        'std::make_shared': invalid template argument for '_Ty', type expected
3>Done building project "emucore.vcxproj" -- FAILED.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Obviously you have to include it in the cpp, not the h.
You can probably also move the settings.h

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done moved both the settings.h and savestate.h to the .cpp

Comment thread rpcs3/Emu/RSX/Overlays/HomeMenu/overlay_home_menu_main_menu.cpp
@Megamouse Megamouse added Overlay Savestates Anything that involves savestates labels Nov 23, 2024
@elad335 elad335 merged commit b94ddb0 into RPCS3:master Nov 23, 2024
@Darkhost1999 Darkhost1999 deleted the home_menu_savestate branch November 23, 2024 20:12
@Jack54guythecoder

Copy link
Copy Markdown

If anybody has any feedback about a game that has 4 or more games in its launcher please let me know.

The Orange Box has 5 games, but ps3 ver is not so good.

Xcedf pushed a commit to Xcedf/rpcs3 that referenced this pull request Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Overlay Savestates Anything that involves savestates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants