Skip to content

Add virtual RTC persistence and emulator save states - #9

Closed
ATEMVEGETA wants to merge 1 commit into
h4lfheart:mainfrom
ATEMVEGETA:codex/pr-virtual-rtc-savestate
Closed

ATEMVEGETA wants to merge 1 commit into
h4lfheart:mainfrom
ATEMVEGETA:codex/pr-virtual-rtc-savestate

Conversation

@ATEMVEGETA

Copy link
Copy Markdown

This restores the original first-pass version from the previous PR after I accidentally deleted/reset the branch while cleaning up later experimental commits.

This PR branch contains only:
b3667e9 Add virtual RTC persistence and emulator save states

The later RTC/RAM-editing experiments were intentionally removed and are not included here.

Changes included:

  • Persist RTC state in a .rtc sidecar and account for real elapsed host time while closed.
  • Advance RTC from wall-clock time while running, so fast-forward does not speed up the clock.
  • Add emulator state save/load support in a .state sidecar.
  • Save/restore CPU, RAM, IO, timers, RTC registers, display controller state, EEPROM contents/state, accelerometer state, SSU, and SCI3 state.
  • Add optional --no-menu launch flag for hiding the Qt menu bar.

Notes:

  • This is a first pass intended for review and cleanup.
  • The goal is to better match real Pokewalker behavior, where the device does not fully shut down between sessions.
  • Save-state persistence also helps preserve state around day rollover behavior.

@ATEMVEGETA
ATEMVEGETA force-pushed the codex/pr-virtual-rtc-savestate branch from b3667e9 to 9107e8a Compare September 9, 2026 13:20
@h4lfheart h4lfheart closed this Sep 9, 2026
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.

2 participants