- Very minor refactoring
- Updated SmokeAPI to v1.0.3
This commit is contained in:
pointfeev 2022-06-02 19:02:45 -05:00
parent ca20de6245
commit 4a2861c364
8 changed files with 20 additions and 14 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms> <UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon> <ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>3.5.0.4</Version> <Version>3.5.0.5</Version>
<PackageIcon>Resources\ini.ico</PackageIcon> <PackageIcon>Resources\ini.ico</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile> <PackageLicenseFile>LICENSE</PackageLicenseFile>
<Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright> <Copyright>2021, pointfeev (https://github.com/pointfeev)</Copyright>

View file

@ -110,8 +110,10 @@ internal partial class MainForm : CustomForm
{ {
Program.Invoke(changelogTreeView, delegate Program.Invoke(changelogTreeView, delegate
{ {
TreeNode change = new(); TreeNode change = new()
change.Text = HttpUtility.HtmlDecode(node.InnerText); {
Text = HttpUtility.HtmlDecode(node.InnerText)
};
root.Nodes.Add(change); root.Nodes.Add(change);
root.Expand(); root.Expand();
if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible(); if (changelogTreeView.Nodes.Count > 0) changelogTreeView.Nodes[0].EnsureVisible();

View file

@ -24,11 +24,13 @@ internal partial class SelectDialogForm : CustomForm
selectionTreeView.AfterCheck += OnTreeNodeChecked; selectionTreeView.AfterCheck += OnTreeNodeChecked;
foreach ((string platform, string id, string name, bool alreadySelected) in choices) foreach ((string platform, string id, string name, bool alreadySelected) in choices)
{ {
TreeNode node = new(); TreeNode node = new()
node.Tag = platform; {
node.Name = id; Tag = platform,
node.Text = name; Name = id,
node.Checked = alreadySelected; Text = name,
Checked = alreadySelected
};
OnTreeNodeChecked(node); OnTreeNodeChecked(node);
selectionTreeView.Nodes.Add(node); selectionTreeView.Nodes.Add(node);
} }

View file

@ -4,4 +4,4 @@ using System.Runtime.InteropServices;
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
[assembly: CLSCompliant(true)] [assembly: CLSCompliant(true)]
[assembly: NeutralResourcesLanguage("en")] [assembly: NeutralResourcesLanguage("en")]

View file

@ -131,10 +131,12 @@ internal static class SteamCMD
} }
if (!File.Exists(DllPath)) if (!File.Exists(DllPath))
{ {
FileSystemWatcher watcher = new(DirectoryPath); FileSystemWatcher watcher = new(DirectoryPath)
watcher.Filter = "*"; {
watcher.IncludeSubdirectories = true; Filter = "*",
watcher.EnableRaisingEvents = true; IncludeSubdirectories = true,
EnableRaisingEvents = true
};
if (File.Exists(DllPath)) progress.Report(-15); // update (not used at the moment) if (File.Exists(DllPath)) progress.Report(-15); // update (not used at the moment)
else progress.Report(-1660); // install else progress.Report(-1660); // install
int cur = 0; int cur = 0;

View file

@ -5,7 +5,7 @@
###### Refer to [this post](https://cs.rin.ru/forum/viewtopic.php?f=29&t=122487) and/or [this repository](https://github.com/acidicoala/SmokeAPI) if you don't know what SmokeAPI is! ;;) ###### Refer to [this post](https://cs.rin.ru/forum/viewtopic.php?f=29&t=122487) and/or [this repository](https://github.com/acidicoala/SmokeAPI) if you don't know what SmokeAPI is! ;;)
###### Refer to [this post](https://cs.rin.ru/forum/viewtopic.php?f=29&t=106474) and/or [this repository](https://github.com/acidicoala/ScreamAPI) if you don't know what ScreamAPI is! ;) ###### Refer to [this post](https://cs.rin.ru/forum/viewtopic.php?f=29&t=106474) and/or [this repository](https://github.com/acidicoala/ScreamAPI) if you don't know what ScreamAPI is! ;)
###### The program utilizes SmokeAPI v1.0.2 and ScreamAPI v3.0.1 downloaded from those posts and embedded into the program itself; no download necessary on your part! ###### The program utilizes SmokeAPI v1.0.3 and ScreamAPI v3.0.1 downloaded from those posts and embedded into the program itself; no download necessary on your part!
--- ---
#### Description: #### Description:
Automatically finds all installed Steam/Epic games and their respective Steamworks/Epic Online Services DLL locations on the user's computer, Automatically finds all installed Steam/Epic games and their respective Steamworks/Epic Online Services DLL locations on the user's computer,