From 79ead1c72951ea13ec1a0792ab9547102809f206 Mon Sep 17 00:00:00 2001 From: AlphaBs Date: Mon, 13 Apr 2020 19:44:01 +0900 Subject: [PATCH] update samples --- CmlLibCoreSample/Program.cs | 1 - CmlLibWinFormSample/MainForm.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CmlLibCoreSample/Program.cs b/CmlLibCoreSample/Program.cs index ebae836..0e5343c 100644 --- a/CmlLibCoreSample/Program.cs +++ b/CmlLibCoreSample/Program.cs @@ -68,7 +68,6 @@ void Start(MSession session) Console.WriteLine($"Initialized in {launcher.Minecraft.path}"); launcher.UpdateProfileInfos(); - foreach (var item in launcher.ProfileInfos) { Console.WriteLine(item.Name); diff --git a/CmlLibWinFormSample/MainForm.cs b/CmlLibWinFormSample/MainForm.cs index 89e7478..a125a56 100644 --- a/CmlLibWinFormSample/MainForm.cs +++ b/CmlLibWinFormSample/MainForm.cs @@ -81,7 +81,7 @@ private void InitializeLauncher() Launcher.FileChanged += Launcher_FileChanged; Launcher.ProgressChanged += Launcher_ProgressChanged; - var versions = Launcher.UpdateProfileInfos(); + var versions = Launcher.UpdateProfiles(); Invoke(new Action(() => {