WiiSharp 0.7.0

dotnet add package WiiSharp --version 0.7.0
                    
NuGet\Install-Package WiiSharp -Version 0.7.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WiiSharp" Version="0.7.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="WiiSharp" Version="0.7.0" />
                    
Directory.Packages.props
<PackageReference Include="WiiSharp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add WiiSharp --version 0.7.0
                    
#r "nuget: WiiSharp, 0.7.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package WiiSharp@0.7.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=WiiSharp&version=0.7.0
                    
Install as a Cake Addin
#tool nuget:?package=WiiSharp&version=0.7.0
                    
Install as a Cake Tool

WiiSharp

.NET library for Wii and GameCube file formats.

Not affiliated with or endorsed by Nintendo. Wii and GameCube are trademarks of Nintendo.

Disc layout and partition crypto follow the WiiBrew documentation and the behaviour of nfs2iso2nfs by sabykos, piratesephiroth and FIX94. The WBFS container follows libwbfs as used by wit; the disc builder lays files out the way wit does. Ticket and TMD fields follow WiiBrew and the carrier-disc notes in haydenmc/wiivci. The GCZ format follows Dolphin's CompressedBlob.

Status

Early. What exists: the disc header, partition table, tickets, title-key derivation from a caller-supplied common key, per-cluster partition data crypto — enough to implement WiiUSharp.Nfs.IPartitionCipher — a reader for WBFS containers, split parts included, a reader for Dolphin GCZ images, a disc builder that writes a hashed plaintext partition around any main.dol and files, reusing the apploader and certificate chain of a disc you already have, readers for DOL headers and the signed parts of a WAD, a DOL editor that adds sections and patches by address, Gecko cheat codes in .gct and text form, the junk generator Nintendo's mastering used between files, and NKit: GameCube images compact to .nkit.iso and restore bit for bit, Wii NKit partitions read as bare plaintext. WAD contents and DOL patching follow.

using WiiSharp;

var commonKey = CommonKey.FromFile("common-key.bin");   // never shipped with this library

using var iso = File.OpenRead("game.iso");
WiiDisc disc = WiiDisc.Read(iso);                       // header + partitions, no data touched
Partition game = disc.DataPartitions[0];
TitleKey key = TitleKey.Derive(commonKey, game.Ticket);

using var plain = File.Create("game.plain.iso");
DataRange range = new DiscCipher(commonKey).Decrypt(iso, plain);   // data partitions decrypted, rest copied

using var wbfs = WbfsFile.Open("game.wbfs");             // picks up game.wbs1, game.wbs2 ... beside it
using Stream image = wbfs.Discs[0].OpenStream();          // seekable ISO view; unstored sectors read as zeros

using var gcz = GczFile.Open("game.gcz");                 // Dolphin compressed image
using Stream gc = gcz.OpenStream();                       // seekable decompressed view

PartitionSystemFiles system = PartitionSystemFiles.Read(plain, disc.DataPartitions[0]);   // apploader, boot/bi2, certs
var builder = new WiiDiscBuilder("GALE01", "Melee", system, File.ReadAllBytes("forwarder.dol"))
{
    Region = RegionArea.Read(plain),
};
builder.Files.Add(new DiscFile("game.iso", gc));
using var built = File.Create("carrier.iso");
WiiDiscBuildResult result = builder.Build(built);         // plaintext clusters with H0-H3, fakesigned ticket + TMD

using var compact = File.Create("game.nkit.iso");
NkitHeader nkit = NkitGameCube.Compact(gc, compact);     // junk between files becomes records; boots as-is in Nintendont
NkitGameCube.Restore(compact, File.Create("back.iso"));  // bit-exact, checked against the recorded CRC-32

Packages

Package Targets Purpose
WiiSharp net48, net6.0, net8.0, net10.0 Disc images, partitions, tickets, TMDs, title keys, disc building, DOL and WAD headers, WBFS and GCZ containers.
dotnet add package WiiSharp

Building

dotnet build WiiSharp.sln
dotnet test WiiSharp.sln

Requires the .NET 10 SDK (global.json). dotnet pack -c Release produces the NuGet package.

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net10.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.0 112 9/16/2026
0.6.1 85 9/16/2026
0.6.0 87 9/15/2026
0.5.0 88 9/14/2026
0.4.0 88 9/14/2026
0.3.0 90 9/14/2026
0.2.0 84 9/14/2026
0.1.0 85 9/14/2026

0.7.0: DolFile (add sections, patch by address) and GeckoCodes (.gct, Ocarina, Dolphin ini).