Skip to content

Commit

Permalink
help files: just open the github URL
Browse files Browse the repository at this point in the history
- use the new help.md, which should be easier to maintain
- update tracelog help msg/fn name
  • Loading branch information
binary1230 committed Nov 22, 2023
1 parent e51ef7b commit 9ef1050
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Diz.Ui.Winforms
3 changes: 0 additions & 3 deletions DiztinGUIsh/DiztinGUIsh.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,6 @@
<Link>diztinguish\.github\workflows\dotnet.yml</Link>
</Content>
</ItemGroup>
<ItemGroup>
<Folder Include="dist\" />
</ItemGroup>
<!--custom build targets for packing up final distribution of files-->
<Import Project="build/TidyPublishDir.targets" />

Expand Down
8 changes: 5 additions & 3 deletions DiztinGUIsh/window/MainWindow.Prompts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,20 @@ private bool PromptForOpenProjectFilename()

private void viewHelpToolStripMenuItem_Click(object sender, EventArgs e)
{
var helpUrl = "https://github.com/IsoFrieze/DiztinGUIsh/blob/master/DiztinGUIsh/dist/HELP.md";
try
{
System.Diagnostics.Process.Start(Directory.GetCurrentDirectory() + "/help.html");
// System.Diagnostics.Process.Start(Directory.GetCurrentDirectory() + "/help.html");
GuiUtil.OpenExternalProcess(helpUrl);
}
catch (Exception)
{
MessageBox.Show("Can't find the help file.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show("Failed to open help url:\r\n"+helpUrl+"", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

private void githubToolStripMenuItem_Click(object sender, EventArgs e) =>
GuiUtil.OpenExternalProcess("https://github.com/Dotsarecool/DiztinGUIsh");
GuiUtil.OpenExternalProcess("https://github.com/Isofrieze/DiztinGUIsh");

private string PromptOpenBizhawkCDLFile()
{
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void UpdateUi()
lblModifiedMFlags.Text = ByteSize.FromBytes(stats.NumMFlagsModified).ToString("0.00");
}

private void button1_Click(object sender, EventArgs e)
private void btnTracelogHelpClick(object sender, EventArgs e)
{
MessageBox.Show("What is this? \r\n" +
"Connect via socket to a special build of BSNES-plus and capture live tracelog as you play the game " +
Expand Down

0 comments on commit 9ef1050

Please sign in to comment.