public override void PreSaveAndQuit() { if (KeyboardSystem.IsKeyboardCompatible) { KeyboardSystem.ResetBars(); } if (MouseSystem.IsMouseCompatible) { MouseSystem.ResetMouse(); } }
public override void PostUpdate() { if (!KeyboardSystem.IsKeyboardCompatible) { return; } health = player.statLife; mana = player.statMana; healthMax = player.statLifeMax2; manaMax = player.statManaMax2; KeyboardSystem.ChangeHealth(health, healthMax); KeyboardSystem.ChangeMana(mana, manaMax); }
public override void Load() { Config.Load(); Logger.Initialize(); try { CueSDK.PossibleX64NativePaths.Add(Config.SDKPathx64); CueSDK.PossibleX86NativePaths.Add(Config.SDKPathx86); CueSDK.Initialize(true); KeyboardSystem.Setup(); MouseSystem.Setup(); } catch (CUEException e) { Logger.Log($"[CUE Exception] : {Enum.GetName(typeof(CorsairError), e.Error)}"); } catch (WrapperException e) { Logger.Log($"[Wrapper Exception] : {e.Message}"); IsSDKAvailable = false; } Config.SaveConfig(); }