Skip to content

OoT support follow-up work #233

Description

@briaguya0

Tracking issue for follow-up work deferred out of #219 (OoT support). Grouped here to start; can be split into sub-issues as any of these get picked up.

These were held back from #219 because landing OoT support first meant matching the existing Shipwright/OTRExporter reference O2R byte-for-byte, and some of these cleanups might involve changing the generated O2R. Now that OoT support has landed, we're no longer pinned to reproducing the old zapd output — so if a cleaner approach here does change the O2R, we're free to change it (and update the ports to match) rather than being constrained to match the reference.

1. DisplayListFactory::SearchVtx — reuse Torch's VTX factory

From #219 (comment)

would using Torch's own VTX factory remove the need for [OoT::DListHelpers in DisplayListFactory::SearchVtx]?

2. Move OoT VTX off the OOT ARRAY type onto the shared VTX format

From #219 (comment)

Move from an OOT ARRAY of type VTX to the standard shared VTX format. Related to #1.

3. Reevaluate the alias system

From #219 (comment)

See if we still need the alias system, or whether having different bhash values for the same data in different paths is something we can work with instead.

4. Drop the CRC-swap logic

From #219 (comment)

See what it'd take to fully drop the "swap the CRC" logic — i.e. which ports currently rely on the swapping. Currently gated behind the ROM_CRC_BSWAP compile flag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions