Skip to content

feat: URL-based snapshot restore (?restore= parameter) #659

@mattgodbolt

Description

@mattgodbolt

The original PR #505 had a `?restore=` URL parameter for loading saved emulator state via URL. This was excluded from the incremental merge because the main branch uses a different snapshot system (snapshot.js vs the PR's state.js).

Could be useful for sharing Atom states via URL. Would need to:

  • Add `restore` to `ParamTypes` in main.js
  • Add `restoreImage` to `parseMediaParams` in url-params.js
  • Load the snapshot JSON from the URL and pass it through the existing snapshot restore path
  • Works for both BBC and Atom models

Low priority -- the file-based save/load already works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acorn-atomSpecific to the Acorn atomfeatureA feature requestuiIssues affecting the web user interface or browser experience

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions