Skip to content

Commit

Permalink
Use OS path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Dec 29, 2021
1 parent 57bf514 commit 1e00cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/GameInstanceManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ public IGame DetermineGame(DirectoryInfo path, IUser user)
default:
// Prompt user to choose
int selection = user.RaiseSelectionDialog(
$"Please select the game that is installed at {path}",
$"Please select the game that is installed at {path.FullName.Replace('/', Path.DirectorySeparatorChar)}",
matchingGames.Select(g => g.ShortName).ToArray());
return selection >= 0 ? matchingGames[selection] : null;
}
Expand Down
2 changes: 1 addition & 1 deletion GUI/Dialogs/CloneFakeGameDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private void comboBoxKnownInstance_SelectedIndexChanged(object sender, EventArgs
string sel = comboBoxKnownInstance.SelectedItem as string;
textBoxClonePath.Text = string.IsNullOrEmpty(sel)
? ""
: manager.Instances[sel].GameDir();
: manager.Instances[sel].GameDir().Replace('/', Path.DirectorySeparatorChar);
}

/// <summary>
Expand Down

0 comments on commit 1e00cd2

Please sign in to comment.