Skip to content

Commit

Permalink
v2.0.1 - Fix Kirby TV Channel not being Region Free
Browse files Browse the repository at this point in the history
  • Loading branch information
PablosCorner committed Jan 13, 2024
1 parent 1ba6550 commit 02307e1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 7 additions & 5 deletions WiiLink-Patcher-CLI/WiiLink_Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
class WiiLink_Patcher
{
//// Build Info ////
static readonly string version = "v2.0.0";
static readonly string version = "v2.0.1";
static readonly string copyrightYear = DateTime.Now.Year.ToString();
static readonly string buildDate = "January 4st, 2024";
static readonly string buildTime = "3:00 PM";
static readonly string buildDate = "January 12th, 2024";
static readonly string buildTime = "7:14 PM";
static string? sdcard = DetectSDCard;
static readonly string wiiLinkPatcherUrl = "https://patcher.wiilink24.com";
////////////////////
Expand Down Expand Up @@ -648,6 +648,10 @@ static void PatchWC24Channel(string channelName, string channelTitle, int channe
File.Move(Path.Join(titleFolder, $"tmd.{channelVersion}"), Path.Join(titleFolder, $"{titleID}.tmd"));
File.Move(Path.Join(titleFolder, "cetk"), Path.Join(titleFolder, $"{titleID}.tik"));

// For Kirby TV Channel in particular, it needs to use a modified TMD file, so redownload it and rename it appropriately
if (channelName == "ktv")
DownloadFile($"{wiiLinkPatcherUrl}/{channelName.ToLower()}/{titleID}.tmd", Path.Join(titleFolder, $"{titleID}.tmd"), channelTitle);

// Apply the delta patches to the app file
task = $"Applying delta patch for {channelTitle}";
foreach (var (app, patch) in appFile.Zip(patchFile, (app, patch) => (app, patch)))
Expand Down Expand Up @@ -699,8 +703,6 @@ static void DownloadWC24Channel(string channelName, string channelTitle, int cha
// Create unpack and unpack-patched folders
Directory.CreateDirectory(titleFolder);

string fileURL = $"{wiiLinkPatcherUrl}/{channelName.ToLower()}/{titleID}";

// Extract the necessary files for the channel
task = $"Extracting stuff for {channelTitle}";
DownloadNUS(titleID, titleFolder, channelVersion.ToString());
Expand Down
10 changes: 5 additions & 5 deletions WiiLink-Patcher-CLI/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ param (
)

# Build the project for all supported platforms
dotnet publish -c Release -r win-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_Windows_v$version"
dotnet publish -c Release -r osx-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_macOS_v$version"
dotnet publish -c Release -r osx-arm64 --self-contained /p:AssemblyName="WiiLink_Patcher_macOS-arm64_v$version"
dotnet publish -c Release -r linux-x64 --self-contained /p:AssemblyName="WiiLink_Patcher_Linux-x64_v$version"
dotnet publish -c Release -r linux-arm64 --self-contained /p:AssemblyName="WiiLink_Patcher_Linux-arm64_v$version"
dotnet publish -c Release -r win-x64 --self-contained /p:AssemblyName="RC24_WiiLink_Patcher_Windows_v$version"
dotnet publish -c Release -r osx-x64 --self-contained /p:AssemblyName="RC24_WiiLink_Patcher_macOS-x64_v$version"
dotnet publish -c Release -r osx-arm64 --self-contained /p:AssemblyName="RC24_WiiLink_Patcher_macOS-arm64_v$version"
dotnet publish -c Release -r linux-x64 --self-contained /p:AssemblyName="RC24_WiiLink_Patcher_Linux-x64_v$version"
dotnet publish -c Release -r linux-arm64 --self-contained /p:AssemblyName="RC24_WiiLink_Patcher_Linux-arm64_v$version"

# Open the folder where the builds are located
explorer.exe .\bin\Release\net6.0-windows10.0.22621.0\

0 comments on commit 02307e1

Please sign in to comment.