Skip to content

Conversation

@eddmann
Copy link
Owner

@eddmann eddmann commented Nov 13, 2025

Implement instant save state functionality via Ctrl+S during CLI gameplay.
When pressed, creates a timestamped save file in the format:
{rom_name}save{counter}_{timestamp}.state

Features:

  • Non-blocking save during gameplay
  • Auto-generated filenames with timestamps
  • Sequential counter for multiple saves per session
  • User feedback with success/error messages
  • Updated help text and controls display

Technical implementation:

  • Added callback mechanism to CliInput for Ctrl+S (ASCII 19)
  • Save callback registered in bin/phpboy.php
  • Uses existing saveState() API from Emulator class

Implement instant save state functionality via Ctrl+S during CLI gameplay.
When pressed, creates a timestamped save file in the format:
  {rom_name}_save_{counter}_{timestamp}.state

Features:
- Non-blocking save during gameplay
- Auto-generated filenames with timestamps
- Sequential counter for multiple saves per session
- User feedback with success/error messages
- Updated help text and controls display

Technical implementation:
- Added callback mechanism to CliInput for Ctrl+S (ASCII 19)
- Save callback registered in bin/phpboy.php
- Uses existing saveState() API from Emulator class
@eddmann eddmann merged commit 82ef36c into main Nov 13, 2025
1 check passed
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.

3 participants