Skip to content
Permalink
Browse files

[skip ci] gsdumpgui: Auto select gsdx dll and gs dump when a director…

…y location is reloaded/changed.

First on list only. Feature to save selection isn't available for now.
  • Loading branch information...
lightningterror committed May 31, 2019
1 parent 877a112 commit fbafd44209deebc3bb2f9432a084c90d25dff11a
Showing with 12 additions and 0 deletions.
  1. +12 −0 tools/GSDumpGUI/Forms/frmMain.cs
@@ -186,6 +186,9 @@ private void cmdBrowseGSDX_Click(object sender, EventArgs e)
Settings.GSDXDir = fbd.SelectedPath;
Settings.Save();
ReloadGsdxDlls();

// Auto select GSdx dll
_availableGsDlls.Selected = _availableGsDlls.Files.FirstOrDefault();
}

private void cmdBrowseDumps_Click(object sender, EventArgs e)
@@ -197,6 +200,9 @@ private void cmdBrowseDumps_Click(object sender, EventArgs e)
Settings.DumpDir = fbd.SelectedPath;
Settings.Save();
ReloadGsdxDumps();

// Auto select GS dump
_availableGsDumps.Selected = _availableGsDumps.Files.FirstOrDefault();
}

private void cmdRun_Click(object sender, EventArgs e)
@@ -376,12 +382,18 @@ private void txtGSDXDirectory_Leave(object sender, EventArgs e)
{
Settings.Save();
ReloadGsdxDlls();

// Auto select GSdx dll
_availableGsDlls.Selected = _availableGsDlls.Files.FirstOrDefault();
}

private void txtDumpsDirectory_Leave(object sender, EventArgs e)
{
Settings.Save();
ReloadGsdxDumps();

// Auto select GS dump
_availableGsDumps.Selected = _availableGsDumps.Files.FirstOrDefault();
}

private void lstProcesses_SelectedIndexChanged(object sender, EventArgs e)

0 comments on commit fbafd44

Please sign in to comment.
You can’t perform that action at this time.