diff --git a/R2API/R2API.cs b/R2API/R2API.cs index d8ab3f96..83bf40d8 100644 --- a/R2API/R2API.cs +++ b/R2API/R2API.cs @@ -61,7 +61,7 @@ public void Awake() { var networkCompatibilityHandler = new NetworkCompatibilityHandler(); networkCompatibilityHandler.BuildModList(); - SteamworksClientManager.onLoaded += CheckIfUsedOnRightGameVersion; + On.RoR2.RoR2Application.Awake += CheckIfUsedOnRightGameVersion; R2APIContentPackProvider.Init(); } @@ -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) { diff --git a/R2API/R2API.csproj b/R2API/R2API.csproj index 7c7ec2ba..a85e89d4 100644 --- a/R2API/R2API.csproj +++ b/R2API/R2API.csproj @@ -36,10 +36,6 @@ - - libs\Facepunch.Steamworks.dll - false - libs\RoR2BepInExPack.dll false diff --git a/R2API/libs/Facepunch.Steamworks.dll b/R2API/libs/Facepunch.Steamworks.dll deleted file mode 100644 index a0ff37a2..00000000 Binary files a/R2API/libs/Facepunch.Steamworks.dll and /dev/null differ