SwitchThemeInjector icon indicating copy to clipboard operation
SwitchThemeInjector copied to clipboard

Extract nxtheme file online or with python script?

Open HeikesFootSlave opened this issue 2 years ago • 1 comments

Suggestion not issue!

Like title says! Would that be possible?

Would be nice to get the content of a nxtheme file using just a web site or even better a python script that would extract the nxtheme file in a given folder (with subdirectories) / same folder with subdirectories! (then it would easily work on android!

Example: py nxtheme.py test.nxtheme /test

And you would get all included theme pages as folders like this

  • test
    • lockscreen
      • bg.png
      • layout.json
    • homescreen
      • bg.png
      • layout.json
      • common.json
      • icon-a.png
      • ...
    • Playerselect -... -...

Would be really cool!

HeikesFootSlave avatar Apr 20 '23 20:04 HeikesFootSlave

nxtheme is just an szs archive containing a json manifest, layout and jpg image. Szs is a custom archive format used by nintendo in games, you can use any existing libraries to extract and pack them. in hindisght it wasn't a great idea to recycle it for custom themes packing but it's too late to change it now.

I think the theme injector also has a command line option to extract them.

exelix11 avatar Apr 20 '23 20:04 exelix11