Skip to content

Commit

Permalink
remove steam specific code, game is now on Epic Game Store, and game …
Browse files Browse the repository at this point in the history
…assembly is different there. (#392)
  • Loading branch information
xiaoxiao921 authored Apr 24, 2022
1 parent 9012b33 commit c8664b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
6 changes: 4 additions & 2 deletions R2API/R2API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void Awake() {
var networkCompatibilityHandler = new NetworkCompatibilityHandler();
networkCompatibilityHandler.BuildModList();

SteamworksClientManager.onLoaded += CheckIfUsedOnRightGameVersion;
On.RoR2.RoR2Application.Awake += CheckIfUsedOnRightGameVersion;

R2APIContentPackProvider.Init();
}
Expand All @@ -85,7 +85,9 @@ public static void LogDebug(object debugText, [CallerMemberName] string caller =
Logger.LogDebug(caller + " : " + debugText.ToString());
}

private static void CheckIfUsedOnRightGameVersion() {
private void CheckIfUsedOnRightGameVersion(On.RoR2.RoR2Application.orig_Awake orig, RoR2Application self) {
orig(self);

var buildId = Application.version;

if (GameBuildId == buildId) {
Expand Down
4 changes: 0 additions & 4 deletions R2API/R2API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@
</ItemGroup>

<ItemGroup>
<Reference Include="Facepunch.Steamworks, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>libs\Facepunch.Steamworks.dll</HintPath>
<Private>false</Private>
</Reference>
<Reference Include="RoR2BepInExPack">
<HintPath>libs\RoR2BepInExPack.dll</HintPath>
<Private>false</Private>
Expand Down
Binary file removed R2API/libs/Facepunch.Steamworks.dll
Binary file not shown.

0 comments on commit c8664b3

Please sign in to comment.