libretro / libretro/RetroArch

Hotkeys for direct save/load state slots

Open
#12,144 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

hotkeys
Dominant language
C
Stars
14.1k
Forks
2.2k
Avg merge
7h 35m
Merged PRs (30d)
51

Description

First and foremost consider this:

  • Only RetroArch bugs should be filed here. Not core bugs or game bugs
  • This is not a forum or a help section, this is strictly developer oriented

Description

I would like to see a set of hotkeys to directly save or load into states 1-6, similar to other emulators such as Dolphin. Functionally, this would leverage the existing slot system by setting the slot number directly then saving/loading into that slot.

For example, if I'm currently on slot 3 and I press the hotkey to save into state 5, it'll set the state number to 5 then directly save into state 5. There can be another option to toggle these hotkeys.

I'm open to working on a PR for this.

Some more context about my specific use-case: I run a Twitch Plays channel with inputs that are restricted by user level (Moderator, Admin, etc). On emulators such as Dolphin, I can reserve savestate 1 to Moderators and up, but on RetroArch there is only one savestate input due to the slot system, so this is not possible. Adding these hotkeys would enable me to restrict states based on level in RetroArch.

Contributor guide

Open the contributing guide

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 by tracing RetroArch's existing state-slot save/load handling and hotkey configuration. Check how the current slot number is set, then determine how direct save/load actions for slots 1-6 and an option to toggle them should fit the existing behavior. Done means each requested hotkey directly saves or loads its assigned slot without requiring a separate slot change.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.