mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-29 00:32:43 +00:00
Update QSBCore.cs
This commit is contained in:
parent
0201536284
commit
5cc7c2356f
@ -152,6 +152,27 @@ public class QSBCore : ModBehaviour
|
|||||||
|
|
||||||
_steamworksInitialized = true;
|
_steamworksInitialized = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DebugLog.ToConsole($"Is steam - overriding AppID");
|
||||||
|
OverrideAppId();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void OverrideAppId()
|
||||||
|
{
|
||||||
|
SteamManager.s_EverInitialized = false;
|
||||||
|
SteamManager.s_instance.m_bInitialized = false;
|
||||||
|
var instance = SteamManager.s_instance;
|
||||||
|
instance.m_bInitialized = false;
|
||||||
|
SteamManager.s_instance = null;
|
||||||
|
|
||||||
|
SteamAPI.Shutdown();
|
||||||
|
|
||||||
|
System.Environment.SetEnvironmentVariable("SteamAppId", "480");
|
||||||
|
System.Environment.SetEnvironmentVariable("SteamGameId", "480");
|
||||||
|
|
||||||
|
instance.InitializeOnAwake();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnDestroy()
|
public void OnDestroy()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user