Skip to content

Commit

Permalink
Update mainForm.cs
Browse files Browse the repository at this point in the history
Fixed app not starting
  • Loading branch information
Ni1kko committed Oct 3, 2021
1 parent 6df096f commit 842776c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions SingleBoostr/SingleBoostr/SingleBoostr/mainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public partial class MainForm : Form
private ISteamApps003 _steamApps003;
private IClientEngine _clientEngine;
private ISteamUser016 _steamUser016;
private IClientFriends _clientFriends;
private ISteamClient012 _steamClient012;
private ISteamFriends002 _steamFriends002;

Expand Down Expand Up @@ -1728,14 +1727,12 @@ private bool ConnectToSteam()

_steamUser016 = _steamClient012.GetISteamUser<ISteamUser016>(_user, _pipe);
_clientUser = _clientEngine.GetIClientUser<IClientUser>(_user, _pipe);
_clientFriends = _clientEngine.GetIClientFriends<IClientFriends>(_user, _pipe);
_steamApps001 = _steamClient012.GetISteamApps<ISteamApps001>(_user, _pipe);
_steamApps003 = _steamClient012.GetISteamApps<ISteamApps003>(_user, _pipe);
_steamFriends002 = _steamClient012.GetISteamFriends<ISteamFriends002>(_user, _pipe);

return _steamUser016 != null
&& _clientUser != null
&& _clientFriends != null
&& _steamApps001 != null
&& _steamApps003 != null
&& _steamFriends002 != null;
Expand All @@ -1744,7 +1741,7 @@ private bool ConnectToSteam()
private void SetUserInfo()
{
string games = $"{_appList.Count} Games";
string displayName = _clientFriends.GetPersonaName();
string displayName = _steamFriends002.GetPersonaName();
displayName = string.IsNullOrWhiteSpace(displayName) ? "Unknown" : Utils.GetUnicodeString(displayName);

Invoke(new Action(() =>
Expand Down

0 comments on commit 842776c

Please sign in to comment.