Skip to content

Commit

Permalink
Japanese EVC fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PablosCorner committed Dec 4, 2024
1 parent 5c40711 commit ea653f2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions WiiLink-Patcher-CLI/WiiLink_Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
class WiiLink_Patcher
{
//// Build Info ////
static readonly string version = "v2.0.4";
static readonly string version = "v2.0.4a";
static readonly string copyrightYear = DateTime.Now.Year.ToString();
static readonly string buildDate = "November 26th, 2024";
static readonly string buildDate = "November 29th, 2024";
static readonly string buildTime = "5:04 PM";
static string? sdcard = DetectRemovableDrive;
static readonly string wiiLinkPatcherUrl = "https://patcher.wiilink24.com";
Expand Down Expand Up @@ -390,7 +390,7 @@ static void DownloadFile(string URL, string dest, string name, bool noError = fa
{
task = $"Downloading {name}";
curCmd = $"DownloadFile({URL}, {dest}, {name})";

if (DEBUG_MODE)
AnsiConsole.MarkupLine($"[springgreen2_1]Downloading [bold]{name}[/] from [bold]{URL}[/] to [bold]{dest}[/][/]...");

Expand Down Expand Up @@ -3085,17 +3085,23 @@ static void EVC_Patch(Region region)
//// Patching Everybody Votes Channel
task = "Patching Everybody Votes Channel";

// Properly set Everybody Votes Channel titleID

// Properly set Everybody Votes Channel titleID and appNum based on region
string channelID = region switch
{
Region.USA => "0001000148414a45",
Region.PAL => "0001000148414a50",
Region.Japan => "0001000148414a4a",
_ => throw new NotImplementedException(),
};

string appNum = region switch
{
Region.Japan => "00000018",
_ => "00000019",
};

List<string> patches = [$"EVC_1_{region}"];
List<string> appNums = ["00000019"];
List<string> appNums = new List<string> { appNum };

PatchWC24Channel("evc", $"Everybody Votes Channel", 512, region, channelID, patches, appNums);

Expand Down

0 comments on commit ea653f2

Please sign in to comment.