OrangeFox86 / DreamcastControllerUsbPico

Dreamcast to USB Gamepad Converter for Raspberry Pi Pico
MIT License
48 stars 7 forks source link

Client: Allow for DreamcastStorage component to flip bytes before writing and after reading #82

Closed Tails86 closed 1 year ago

Tails86 commented 1 year ago

The arrays of uint32 values being written are stored on the RP2040 in little-endian format. When VMU data is stored in file form, words are normally stored in big-endian format. This conversion wasn't originally done because it allowed for no conversion when spitting out the data, and data was only ever used internally. Proposed use-cases will allow for external injection of data which will be in big-endian format. This makes storing data in the correct format more crucial.

This change will likely cause the Dreamcast to not understand files generated with past versions of this library.