Skip to content

Comments

fix: correctly detect screenshot name#1

Merged
josegonzalez merged 1 commit intomainfrom
fix-screenshot-name
Jan 25, 2025
Merged

fix: correctly detect screenshot name#1
josegonzalez merged 1 commit intomainfrom
fix-screenshot-name

Conversation

@josegonzalez
Copy link
Owner

Previously, we would automatically set the name of the screenshot to the most recently played game. This is incorrect for cases where we are not currently in a game, such as in the main ui.

To fix this, we now detect minarch.elf - as well as a slew of popular optional emulators - when checking if we should use the game name or a generic name. While this is a bit more annoying to upkeep - especially as folks port other custom emulators - this is a bit better as now we don't errantly mark a screenshot of the UI as a game.

Ideally we also detect if another custom pak is launched and use the pak's name as the screenshot name, but this is better than nothing.

Previously, we would automatically set the name of the screenshot to the most recently played game. This is incorrect for cases where we are not currently _in_ a game, such as in the main ui.

To fix this, we now detect minarch.elf - as well as a slew of popular optional emulators - when checking if we should use the game name or a generic name. While this is a bit more annoying to upkeep - especially as folks port other custom emulators - this is a bit better as now we don't errantly mark a screenshot of the UI as a game.

Ideally we also detect if another custom pak is launched and use the pak's name as the screenshot name, but this is better than nothing.
@josegonzalez josegonzalez merged commit 7bb4703 into main Jan 25, 2025
1 check passed
@josegonzalez josegonzalez deleted the fix-screenshot-name branch January 25, 2025 04:16
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.

1 participant