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

cellScreenshot: initial implementation #6668

Merged
merged 1 commit into from
Oct 17, 2019

Conversation

Megamouse
Copy link
Contributor

@Megamouse Megamouse commented Sep 29, 2019

Implements the basic setup of the cellScreenshot utility.
This includes enabling/disabling screenshots, getting the desired screenshot name and metadata, as well as receiving the optional overlay image information.

This is connected to the existing rpcs3 screenshot shortcut and creates a second screenshot in "/screenshots/cell/".
It will only create the second screenshot if the game enabled it.

TODOs:
The overlay is not yet added to the screenshot (if one was specified).
The filenames are not incrementing yet.

@elad335

This comment has been minimized.

@Megamouse

This comment has been minimized.

@@ -308,63 +313,102 @@ void gs_frame::flip(draw_context_t, bool /*skip_frame*/)
void gs_frame::take_screenshot(const std::vector<u8> sshot_data, const u32 sshot_width, const u32 sshot_height)
{
std::thread(
[sshot_width, sshot_height](const std::vector<u8> sshot_data) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is basically all formatting from spaces to tabs


const auto fxo = g_fxo->get<screenshot_manager>();

if (fxo->is_enabled)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

additional code starts here

@Megamouse Megamouse merged commit 0bad56d into RPCS3:master Oct 17, 2019
@Megamouse Megamouse deleted the cellScreenshot branch October 19, 2019 17:24
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.

None yet

2 participants