Skip to content

Commit 02307e1

Browse files
committed
v2.0.1 - Fix Kirby TV Channel not being Region Free
1 parent 1ba6550 commit 02307e1

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

WiiLink-Patcher-CLI/WiiLink_Patcher.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
class WiiLink_Patcher
1414
{
1515
//// Build Info ////
16-
static readonly string version = "v2.0.0";
16+
static readonly string version = "v2.0.1";
1717
static readonly string copyrightYear = DateTime.Now.Year.ToString();
18-
static readonly string buildDate = "January 4st, 2024";
19-
static readonly string buildTime = "3:00 PM";
18+
static readonly string buildDate = "January 12th, 2024";
19+
static readonly string buildTime = "7:14 PM";
2020
static string? sdcard = DetectSDCard;
2121
static readonly string wiiLinkPatcherUrl = "https://patcher.wiilink24.com";
2222
////////////////////
@@ -648,6 +648,10 @@ static void PatchWC24Channel(string channelName, string channelTitle, int channe
648648
File.Move(Path.Join(titleFolder, $"tmd.{channelVersion}"), Path.Join(titleFolder, $"{titleID}.tmd"));
649649
File.Move(Path.Join(titleFolder, "cetk"), Path.Join(titleFolder, $"{titleID}.tik"));
650650

651+
// For Kirby TV Channel in particular, it needs to use a modified TMD file, so redownload it and rename it appropriately
652+
if (channelName == "ktv")
653+
DownloadFile($"{wiiLinkPatcherUrl}/{channelName.ToLower()}/{titleID}.tmd", Path.Join(titleFolder, $"{titleID}.tmd"), channelTitle);
654+
651655
// Apply the delta patches to the app file
652656
task = $"Applying delta patch for {channelTitle}";
653657
foreach (var (app, patch) in appFile.Zip(patchFile, (app, patch) => (app, patch)))
@@ -699,8 +703,6 @@ static void DownloadWC24Channel(string channelName, string channelTitle, int cha
699703
// Create unpack and unpack-patched folders
700704
Directory.CreateDirectory(titleFolder);
701705

702-
string fileURL = $"{wiiLinkPatcherUrl}/{channelName.ToLower()}/{titleID}";
703-
704706
// Extract the necessary files for the channel
705707
task = $"Extracting stuff for {channelTitle}";
706708
DownloadNUS(titleID, titleFolder, channelVersion.ToString());

WiiLink-Patcher-CLI/build.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ param (
77
)
88

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

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

0 commit comments

Comments
 (0)