A stable modding interface between Techblox and mods https://mod.exmods.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
768B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using Harmony;
  7. using RobocraftX.Common;
  8. namespace GamecraftModdingAPI.Utility
  9. {
  10. /// <summary>
  11. /// Patch of bool RobocraftX.Common.SteamManager.VerifyOrInit()
  12. /// This does not let you run Gamecraft without Steam.
  13. /// DO NOT USE!
  14. /// </summary>
  15. [HarmonyPatch(typeof(SteamManager), "VerifyOrInit")]
  16. class SteamInitPatch
  17. {
  18. /// <summary>
  19. /// Ignore the result of steam initialization?
  20. /// </summary>
  21. public static bool ForcePassSteamCheck = false;
  22. public static void Postfix(ref bool __result)
  23. {
  24. __result = __result || ForcePassSteamCheck;
  25. }
  26. }
  27. }