Skip to content

Commit

Permalink
Fix: Use different output strings for extra channel setup
Browse files Browse the repository at this point in the history
  • Loading branch information
AyeItsHarry committed Dec 20, 2024
1 parent fbcdb56 commit 4886ad1
Showing 1 changed file with 44 additions and 25 deletions.
69 changes: 44 additions & 25 deletions WiiLink-Patcher-CLI/WiiLink_Patcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
class WiiLink_Patcher
{
//// Build Info ////
static readonly string version = "v2.0.5 Nightly";
static readonly string version = "v2.0.5 RC2";
static readonly string copyrightYear = DateTime.Now.Year.ToString();
static readonly string buildDate = "December 13th, 2024";
static readonly string buildTime = "4:31 PM";
static readonly string buildDate = "December 20th, 2024";
static readonly string buildTime = "9:14 PM";
static string? sdcard = DetectRemovableDrive;
static readonly string wiiLinkPatcherUrl = "https://patcher.wiilink24.com";
////////////////////
Expand Down Expand Up @@ -3774,26 +3774,46 @@ static void Finished()
}

// Please proceed text
if (platformType == Platform.Wii)
if (extraChannels_selection.Count == 0)
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/wii/#section-ii---installing-wads-and-patching-wii-mail[/]"
: $"{localizedText?["Finished"]?["pleaseProceed"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
}
else if (platformType == Platform.vWii)
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/vwii/#section-iii---installing-wads-and-patching-wii-mail[/]"
: $"{localizedText?["Finished"]?["pleaseProceed"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
if (platformType == Platform.Wii)
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/wii/#section-ii---installing-wads-and-patching-wii-mail[/]"
: $"{localizedText?["Finished"]?["pleaseProceedWii"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
}
else if (platformType == Platform.vWii)
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/vwii/#section-iii---installing-wads-and-patching-wii-mail[/]"
: $"{localizedText?["Finished"]?["pleaseProceedvWii"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
}
else
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/dolphin/#section-ii---installing-wads[/]"
: $"{localizedText?["Finished"]?["pleaseProceedDolphin"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
}
}
else
{
string pleaseProceed = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wiilink.ca/guide/dolphin/#section-ii---installing-wads[/]"
: $"{localizedText?["Finished"]?["pleaseProceed"]}";
AnsiConsole.MarkupLine($"{pleaseProceed}\n");
if (platformType == Platform.Dolphin)
{
string installWad = patcherLang == PatcherLanguage.en
? "Please proceed with installing the WADs through the Dolphin interface (Tools > Install WAD...)"
: $"{localizedText?["Finished"]?["installWadDolphin"]}";
AnsiConsole.MarkupLine($"{installWad}\n");
}
else
{
string installWad = patcherLang == PatcherLanguage.en
? "Please proceed with the tutorial that you can find on [bold springgreen2_1 link]https://wii.hacks.guide/yawmme[/]"
: $"{localizedText?["Finished"]?["installWadYawmme"]}";
AnsiConsole.MarkupLine($"{installWad}\n");
}
}

if (extraChannels_selection.Contains("ws_eu") || extraChannels_selection.Contains("ws_us") || extraChannels_selection.Contains("ws_jp"))
Expand All @@ -3804,12 +3824,6 @@ static void Finished()
AnsiConsole.MarkupLine($"{wiiWarePatch}\n");
}

// Clear all lists (just in case it's Custom Setup)
wiiLinkChannels_selection.Clear();
wiiConnect24Channels_selection.Clear();
extraChannels_selection.Clear();
combinedChannels_selection.Clear();

// What would you like to do now text
string whatWouldYouLikeToDo = patcherLang == PatcherLanguage.en
? "What would you like to do now?"
Expand Down Expand Up @@ -3867,6 +3881,11 @@ static void Finished()
}
break;
case 2:
// Clear all lists (just in case it's Custom Setup)
wiiLinkChannels_selection.Clear();
wiiConnect24Channels_selection.Clear();
extraChannels_selection.Clear();
combinedChannels_selection.Clear();
// Check to see if removable drive is still connected
sdcard = DetectRemovableDrive;
MainMenu();
Expand Down

0 comments on commit 4886ad1

Please sign in to comment.