Skip to content

gui: fix TV and GamePad screenshot filenames being swapped#2009

Open
NKR0ne wants to merge 1 commit into
cemu-project:mainfrom
NKR0ne:screenshot-filename-fix
Open

gui: fix TV and GamePad screenshot filenames being swapped#2009
NKR0ne wants to merge 1 commit into
cemu-project:mainfrom
NKR0ne:screenshot-filename-fix

Conversation

@NKR0ne

@NKR0ne NKR0ne commented Jul 25, 2026

Copy link
Copy Markdown

GenerateScreenshotFilename(bool isDRC) is called with mainWindow, which is its exact inverse — VulkanRenderer::HandleScreenshotRequest passes !padView as mainWindow.

So TV screenshots are saved with the _GamePad suffix, and GamePad screenshots are saved without it. Only the filename is affected; the image content is correct.

Noticed while debugging a black screen, where a TV capture arriving labelled _GamePad briefly sent the investigation down the wrong path.

GenerateScreenshotFilename takes isDRC, but SaveScreenshot passes mainWindow,
which is its exact inverse (VulkanRenderer::HandleScreenshotRequest passes
!padView as mainWindow).

The result is that TV screenshots are saved with the _GamePad suffix and
GamePad screenshots are saved without it. Only the filename is affected, the
image content is correct.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Comment on lines +102 to +103
// GenerateScreenshotFilename takes isDRC, which is the opposite of mainWindow. Passing
// mainWindow directly gave TV captures the _GamePad suffix and GamePad captures none

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

IMO there's no need to leave about problems that were fixed

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