switchbrew / nx-hbmenu

The Nintendo Switch Homebrew Menu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not show icon.jpg on sideloaded .nro

iUltimateLP opened this issue · comments

Hey, when developing a homebrew app I recognized that the icon.jpg is not shown in the hbmenu (and instead a switch with an exclamation mark) when transferring it either via nxlink or placing the .nro on the SD card? Is that a bug or a mistake from my side? I do have a icon.jpg placed next to the makefile and also set the path in the makefile.

Thanks!

Hmm it's a totally normal .jpg I saved in Photoshop, and since when was JPG ever lossless? Strange...

aka "progressive"

Turned it off, still the same issue. Here's the .jpg I use, if that helps.
icon2

Thanks, that was it 👍

Btw using fsInitialize/fsExit from an app is not needed, it's done automatically...(see fs/ examples)

Isn't capsaLoadAlbumFile/{caps*} usable for your use-case, instead of manually accessing Bis?

Thanks for the tip.

It would be usable, but there is no real advantage in copying over the data from capsaLoadAlbumFile into a buffer and then send it along the socket if the files are present (other than it might be more performant than finding the filenames right now since I haven't figured the game ID encryption in the screenshot filename out yet).

caps* is the proper way to access it though, and you're already using capsa anyway...