RobLoach / RobLoach/raylib-libretro
save states: store PNG thumbnail screenshot alongside state
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 38
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Save states have no visual preview. RetroArch stores a thumbnail alongside each .state file. TASKS.md lists this as a planned feature. A thumbnail would let users identify states visually in a future save-slot picker UI.
Suggested Implementation
After a successful SaveLibretroState(), export the current framebuffer as a PNG to <statepath>.png using raylib's ExportImage(). Load and display it in the save/load state menu next to each slot label.
QA
- Save a state
- Confirm a
.pngfile appears next to the.statefile - Load state menu shows the thumbnail image for that slot
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at SaveLibretroState() and the save/load state menu, then review raylib's ExportImage() for the framebuffer-to-PNG step. The work is complete when saving a state creates a neighboring .png file and the menu displays that thumbnail for the corresponding slot; use the listed QA steps to verify both behaviors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100