Skip to content

Make patch function generic #1

@JaxxyIV

Description

@JaxxyIV

Currently, this module only works for seeds generated on alttpr.com. Attempting to patch a seed generated from other sources such as AVIANART will not work because the response payloads are different. The possible solution(s) are as follows:

  • Add extra checks to verify the type of payload being passed.
  • Change parameter seed to accept type Record<number, number[]>[] instead of type VTSeed.
  • Extract fetching the base patch to a separate function.
  • AVIANART provides the base64 patch in the response payload, negating the need for async for that case only.
  • Remove all async behavior from default.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions