Hacking Sharpii

  • Thread starter Thread starter person66
  • Start date Start date
  • Views Views 27,865
  • Replies Replies 153
  • Likes Likes 4

person66

If it isn't edited, it isn't a true person66 post
Member
Joined
Jun 16, 2009
Messages
1,108
Solutions
2
Reaction score
90
Trophies
1
Location
Canada
XP
528
Country
Canada
Sharpii
A Command-line libWiiSharp App

Last Update: Jun 23, 2016 - v1.7.3: Moved to GitHub from Google Code

For the last little while I have been working on this program called Sharpii. It is a command line app for windows that I made, which uses leathl's libWiiSharp.dll to perform tasks such as
  • Pack, unpack, or edit .wad files
  • Pack, and unpack U8 archives
  • Patch IOS .wad files with various patches
  • Download files from NUS
  • Convert a .wav file to .bns, and vice versa
  • Convert an image file to a .tpl, and vice versa
  • Send a .dol or .wad to the Homebrew Channel over Wi-Fi
For more details see the readme below


Download:
Sharpii can be downloaded here: https://github.com/mogzol/sharpii/releases


Readme:
This user does not have permission to use the HTML BB code.


Changelog:
1.7.3

- Updated URLs for the downloaders to use GitHub instead of Google Code
- WadInstaller.dll is now included in the release zip
1.7.2
- Fixed a bug that would prevent you from changing a wad type
- Wad info now also displays the full, 16-character Title ID
1.7.1
- Fixed a bug that prevented Sharpii from checking for SharpiiIP in the system variables
1.7
- Sharpii can now be installed for use without the exe
- SharpiiIP is now a system variable, not a user one.
- Sharpii now looks for DLLs in the same directory as the exe
- Bug fixes
1.6
- SendWad now supports AHBPROT (use '-ahb')
- IP can now be saved in an environmental variable (SharpiiIP) for both SendWad and SendDol (manually or with '-saveip')
- Pointless aster eggs are fun!
- Code cleanup/bug fixes

Older Changelogs:
1.5
- Added the ability to send WADs to the HBC using SendWad
- You can now download an IOS with -ios # in NUSD
- Downloaded IOS wads are now named like so: IOS##-64-####.wad
- Under certain conditions, when downloading a wad with NUS, it will not be saved in a folder, just as the WAD (see ReadMe)
- If missing dll's are detected (WadInstaller or libWiiSharp), Sharpii will ask to download them, if they are required.
- You can now use a .dol file instead of a .wad with the '-dol' in the WAD editor/packer
- Probably a few other little things I have forgotten
- Even more code cleanup and bug fixes
1.4
- Added the ability to send arguments in the SendDol function
- Changed the way the SendDol function works a little
- More code cleanup and bug fixes
v1.3
- Added the ability to mix and match WADs
- Added the ability to download just a single content from NUS
- Code cleanup and bug fixes
- Sharpii can now find JoostinOnline a girlfriend! :P
v1.2
- Added version patch support for IOS patching
- Switched to scooby74029's mod of libWiiSharp
- Bug fixes
v1.1
- Added support for NUS downloading
v1.0
- Initial release


If you want to donate (I'm not asking you to though) I now have a paypal, so donations can be sent to [email protected]

If you have any problems, comments, or suggestions, please add them below :yay:
 
Last edited by person66,
Great stuff, thx
smile.gif
 
Thanks for the positive feedback, I just updated this to 1.1, it can now download files from NUS, using something similar to this:

Code:
Sharpii.exe NUSD -id 0000000100000002 -v 513 -o out -local -wad -decrypt
Which would download System menu 4.3U, or use local files if present, and save just the WAD and decrypted contents to a folder called 'out'.

Note that the only necessary arguments are -id and -v or -version
 
XFlak said:
Great work buddy, this could replace like 4 or 5 tools ModMii is currently using! One day when I'm not feeling too lazy I might just have to incorporate sharpii into ModMii
biggrin.gif
Wow, I would be honoured if this is ever included in ModMii, if you or anyone else can think of any other features that would be helpful/useful (even if they aren't a part of libwiisharp) then I would be more then happy to look in to adding them. Right now I am thinking about adding support for sending wads to the homebrew channel (like crap and customizemii), but I am always looking for new ideas.
 
you can add the version patch to the IOS patching options, the libwiisharp mod used by ModMii already supports it so it should be pretty simple for u to add.

Another idea would be to be able to mix and match wads, like inserting the audio clip from wad 1 into wad 2 without first needing to extract the audio from wad 1.
 
One idea I have is downloading one content from a title (e.g. for getting the base .app for creating themes). I'm pretty sure there is already a standalone tool for this which uses libWiiSharp, so I would assume it shouldn't be too hard to implement.

On a side note, this is pretty cool. I have thought several times how handy it would be to have a tool like this. And the name is pure genius.

XFlak said:
you can add the version patch to the IOS patching options, the libwiisharp mod used by ModMii already supports it so it should be pretty simple for u to add.

Another idea would be to be able to mix and match wads, like inserting the audio clip from wad 1 into wad 2 without first needing to extract the audio from wad 1.

Glancing through the source, it looks like it can already patch the version of IOS, as well as the IOS slot it installs to.
 
SifJar said:
One idea I have is downloading one content from a title (e.g. for getting the base .app for creating themes). I'm pretty sure there is already a standalone tool for this which uses libWiiSharp, so I would assume it shouldn't be too hard to implement.

On a side note, this is pretty cool. I have thought several times how handy it would be to have a tool like this. And the name is pure genius.

XFlak said:
you can add the version patch to the IOS patching options, the libwiisharp mod used by ModMii already supports it so it should be pretty simple for u to add.

Another idea would be to be able to mix and match wads, like inserting the audio clip from wad 1 into wad 2 without first needing to extract the audio from wad 1.

Glancing through the source, it looks like it can already patch the version of IOS, as well as the IOS slot it installs to.
There is some other type of version patch that scooby's mod of patchIOS does, but I honestly don't know what it does. Anyone care to explain?

And for downloading one content from a title, I assume you are talking about something similar to NusFileGrabber included with modmii? I can look in to something like that.
 
Yeah, that's exactly what I meant.

And I was unaware of any other version patch...not sure how else the version could be patched...interesting.
 
the version patch is the one triggered by "-VP" in scooby's patchios mod. This patch is what allows you to "downgrade" an IOS. For example, without the version patch, you will not be able to overwrite IOSxx v65535 with IOSxx v21006. It's thanks to the version patch that any title deleter is no longer a part of the "remove stubs" softmod process

edit: note that the version patch is not the same as patching the version #
 
Ah thanks for the explanation XFlak. So it disables version checking in the patched IOS? How does that aid stub deletion? (Sorry this is probably off topic...maybe you could PM me? I'm interested in this and haven't heard of it until now)
 
Nice
smile.gif
Been wondering if there was a tool like this.

SifJar said:
Ah thanks for the explanation XFlak. So it disables version checking in the patched IOS? How does that aid stub deletion? (Sorry this is probably off topic...maybe you could PM me? I'm interested in this and haven't heard of it until now)
I think that it allows you to just install the lower-version (real) title over top of the stub without deleting the stub.
 
techboy said:
Nice
smile.gif
Been wondering if there was a tool like this.

SifJar said:
Ah thanks for the explanation XFlak. So it disables version checking in the patched IOS? How does that aid stub deletion? (Sorry this is probably off topic...maybe you could PM me? I'm interested in this and haven't heard of it until now)
I think that it allows you to just install the lower-version (real) title over top of the stub without deleting the stub.
correct
biggrin.gif
 
techboy said:
Nice
smile.gif
Been wondering if there was a tool like this.

SifJar said:
Ah thanks for the explanation XFlak. So it disables version checking in the patched IOS? How does that aid stub deletion? (Sorry this is probably off topic...maybe you could PM me? I'm interested in this and haven't heard of it until now)
I think that it allows you to just install the lower-version (real) title over top of the stub without deleting the stub.
Can you not do that anyway with the NAND Permissions patch? I always assumed you could.
 
OK, quick update, I added version patch support, and Sharpii now uses scooby74029's mod of libWiiSharp (thanks scooby!)
I also fixed a couple bugs I found while testing.

If you have any problems let me know.

I will start to work on some of the suggested features later on this week
yaywii.gif
 
person66 said:
OK, quick update, I added version patch support, and Sharpii now uses scooby74029's mod of libWiiSharp (thanks scooby!)
I also fixed a couple bugs I found while testing.

If you have any problems let me know.

I will start to work on some of the suggested features later on this week
yaywii.gif
I want it to find me a girlfriend.
 

Site & Scene News

Popular threads in this forum