RobLoach / RobLoach/raylib-libretro

save states: store PNG thumbnail screenshot alongside state

Open
#290 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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 .png file appears next to the .state file
  • Load state menu shows the thumbnail image for that slot

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.