Skip to content

Commit

Permalink
using different steam appid so it doesn't show up in the friends list
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatH0r committed Dec 30, 2016
1 parent 5c1d974 commit 233893a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion source/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace ExtraQL
{
public partial class MainForm : Form
{
public const string Version = "2.25";
public const string Version = "2.26";

private readonly Config config;
private readonly HttpServer server;
Expand Down
16 changes: 12 additions & 4 deletions source/Steamworks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class Steamworks : IDisposable

#endregion

// using the QL Dedicated Linux Server app-id so it won't block the QL client (282440) from starting
public ulong AppID { get; set; } = 349090;
// using the NVIDIA.SteamLauncher app-id (Config category) to prevent anything from showing up in the friend list nor block starting games
public ulong AppID { get; set; } = 236600;

private bool initialized;

Expand Down Expand Up @@ -81,10 +81,18 @@ private bool EnsureInit()

string dllDir = Application.StartupPath + "\\";

// try the configured AppID
File.WriteAllText(dllDir + "steam_appid.txt", AppID.ToString());

// try NVIDIA.SteamLauncher AppID
File.WriteAllText(dllDir + "steam_appid.txt", "236600");
this.initialized = SteamAPI_Init();

// try the configured AppID
if (!this.initialized)
{
File.WriteAllText(dllDir + "steam_appid.txt", AppID.ToString());
this.initialized = SteamAPI_Init();
}

// fallback to Steamworks SDK Redist AppID
if (!this.initialized && AppID != 1007)
{
Expand Down

0 comments on commit 233893a

Please sign in to comment.