Skip to content

Commit

Permalink
Fix RE 1: fix player 2 dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Mar 16, 2024
1 parent 672bc71 commit 67f8e52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IntelOrca.Biohazard.BioRand/BaseRandomiser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ public virtual string[] GetPlayerCharacters(int index)
{
var result = new HashSet<string>();
var pldFiles = DataManager
.GetDirectories(BiohazardVersion, $"pld0")
.GetDirectories(BiohazardVersion, $"pld{index}")
.ToArray();
foreach (var pldPath in pldFiles)
{
Expand Down
2 changes: 2 additions & 0 deletions IntelOrca.Biohazard.BioRand/RECV/ReCvRandomiser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ public override string GetPlayerName(int player) =>
_ => throw new NotImplementedException(),
};

public override string[] GetPlayerCharacters(int index) => base.GetPlayerCharacters(0);

internal FileRepository CreateRepository(string installPath, string? modPath = null)
{
var repo = new FileRepository(installPath, null);
Expand Down
2 changes: 1 addition & 1 deletion biorand/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ private void UpdatePlayerDropdowns()
dropdown.SelectedIndex = 0;
}

if (SelectedGame == 1 || SelectedGame == 3)
if (SelectedGame != 2)
{
lblPlayer1.Visibility = Visibility.Visible;
dropdownPlayer1.Visibility = Visibility.Visible;
Expand Down

0 comments on commit 67f8e52

Please sign in to comment.