Reisyukaku / ReiNX

A modular Switch custom firmware
GNU General Public License v2.0
818 stars 84 forks source link

Add ability to load a splash.bmp instead of a .bin #42

Closed nnsee closed 6 years ago

nnsee commented 6 years ago

This .bmp needs to be 720x1280 (because of the way the Switch draws gfx) and has to have a colour depth of 24.

Theoretically, this could be improved by writing the resulting decoded gfx into splash.bin and loading that directly next time, making it boot faster.

Fixes https://github.com/Reisyukaku/ReiNX/issues/23

nnsee commented 6 years ago

It now tries loading splash.bin by default if it exists. If it doesn't, and a splash.bmp exists, that .bmp is converted to a .bin, stored on disk and then that is loaded. On next boot, the converted .bin is immediately used instead, so time isn't wasted on conversion.

This means that until a metadata or signature check is implemented, a splash.bmp is never loaded unless the splash.bin is deleted. This is currently intended behavior.

vaccarieli commented 6 years ago

Does somebody know where can i find the original size and texture for the nintendo switch first start up logo ?

nnsee commented 6 years ago

Last commit majorly changes some behavior (for the better, I think - lower boot time) so it can be reverted if needed.

nnsee commented 6 years ago

Closed PR until a bug is fixed (BMPs are mirrored).