Skip to content

ITotalJustice/sphaira

Repository files navigation

sphaira

A homebrew menu for the switch.

See the gbatemp thread for more details / discussion.

showcase

Img Img
Img Img
Img Img
Img Img

bug reports

for any bug reports, please use the issues tab and explain in as much detail as possible!

please include:

  • CFW type (i assume Atmosphere, but someone out there is still using Rajnx)
  • CFW version
  • FW version
  • The bug itself and how to reproduce it

ftp

ftp can be enabled via the network menu. It uses the same config as ftpsrv /config/ftpsrv/config.ini. See here for the full list of all configs available.

mtp

mtp can be enabled via the network menu.

file assoc

sphaira has file assoc support. lets say your app supports loading .png files, then you could write an assoc file, then when using the file browser, clicking on a .png file will launch your app along with the .png file as argv[1]. This was primarly added for rom loading support for emulators / frontends such as retroarch, melonds, mgba etc.

[config]
path=/switch/your_app.nro
supported_extensions=jpg|png|mp4|mp3

the path field is optional. if left out, it will use the name of the ini to find the nro. For example, if the ini is called mgba.ini, it will try to find the nro in /switch/mgba.nro and /switch/folder/mgba.nro.

see assets/romfs/assoc/ for more examples of file assoc entries

Credits

  • borealis
  • stb
  • yyjson
  • nx-hbmenu
  • nx-hbloader
  • deko3d-nanovg
  • libpulsar
  • minIni
  • gbatemp
  • hb-appstore
  • haze
  • everyone who has contributed to this project!