Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 43 additions & 3 deletions src/RetroGOG/frmDependencies.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions src/RetroGOG/frmDependencies.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ private void frmDependencies_Load(object sender, EventArgs e)
lblGOGStatus.Text = "GOG Galaxy 2.0 is installed in the default location.";
GOGFound = true;
}
else if (Directory.Exists(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\GOG.com\\Galaxy\\plugins\\installed"))
{
imgGOGStatus.Image = Properties.Resources.warn;
lblGOGStatus.Text = "GOG Galaxy 2.0 not found in the default location.";
lblGOGBrowse.Visible = true;
txtGOGPath.Visible = true;
btnGOGBrowse.Visible = true;
}
else
{
imgGOGStatus.Image = Properties.Resources.no;
Expand Down Expand Up @@ -96,6 +104,23 @@ private void tmrCheck_Tick(object sender, EventArgs e)
}
}

private void btnGOGBrowse_Click(object sender, EventArgs e)
{
OpenFileDialog browser = new OpenFileDialog();
browser.Title = "Please select your GalaxyClient.exe file";
browser.InitialDirectory = @"c:\";
browser.Filter = "GOG Galaxy 2.0 Application|GalaxyClient.exe";
browser.FilterIndex = 2;
browser.RestoreDirectory = true;
if (browser.ShowDialog() == DialogResult.OK)
{
txtGOGPath.Text = browser.FileName;
imgGOGStatus.Image = Properties.Resources.yes;
lblGOGStatus.Text = "GOG Galaxy 2.0 location has been entered by user.";
GOGFound = true;
}
}

private void btnRetroBrowse_Click(object sender, EventArgs e)
{
OpenFileDialog browser = new OpenFileDialog();
Expand Down