Skip to content

Commit 0a20be0

Browse files
author
Tudi20
committed
Update logging a bit
1 parent 5f6bf53 commit 0a20be0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Universal THCRAP Launcher/MainForm.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,7 @@ public void PopulateGames()
727727
FilterByExeType();
728728

729729
if (gameListBox.SelectedIndex == -1 && gameListBox.Items.Count > 0) gameListBox.SelectedIndex = 0;
730+
LogListBoxes();
730731
}
731732

732733
private void GetPatchList()
@@ -788,6 +789,7 @@ public void PopulatePatchList()
788789
if (bool.Parse(Configuration1.OnlyFavorites[0])) FilterByFav(patchListBox);
789790

790791
if (patchListBox.SelectedIndex == -1 && patchListBox.Items.Count > 0) patchListBox.SelectedIndex = 0;
792+
LogListBoxes();
791793
}
792794
private void UpdateSplitContainerReleatedGUI()
793795
{
@@ -1210,6 +1212,19 @@ private void DownloadCurrentLanguage()
12101212
log.WriteLine($"Couldn't connect to GitHub for language update.\nReason: {ex}");
12111213
}
12121214
}
1215+
1216+
private void LogListBoxes()
1217+
{
1218+
log.WriteLine($"Selected Indices: {patchListBox.SelectedIndex} | {gameListBox.SelectedIndex}");
1219+
log.WriteLine($"Listboxes:");
1220+
log.Write("\tPatches: ");
1221+
foreach (var item in patchListBox.Items)
1222+
log.Write($"{item}, ");
1223+
log.Write("\n\tGames: ");
1224+
foreach (var item in gameListBox.Items)
1225+
log.Write($"{item}, ");
1226+
log.Write("\n");
1227+
}
12131228
/// <summary>
12141229
/// Logs the current configuration to the console and log file
12151230
/// </summary>

0 commit comments

Comments
 (0)