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.

29 lines
736B

  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.FrontEnd;
  8. namespace GamecraftModdingAPI.Utility
  9. {
  10. /// <summary>
  11. /// Patch of bool RobocraftX.FrontEnd.MinimumSpecsCheck.CheckRequirementsMet()
  12. /// </summary>
  13. [HarmonyPatch(typeof(MinimumSpecsCheck), "CheckRequirementsMet")]
  14. class MinimumSpecsCheckPatch
  15. {
  16. /// <summary>
  17. /// Ignore result of the requirement check?
  18. /// </summary>
  19. public static bool ForcePassMinimumSpecCheck = false;
  20. public static void Postfix(ref bool __result)
  21. {
  22. __result = __result || ForcePassMinimumSpecCheck;
  23. }
  24. }
  25. }