Ejemplo n.º 1
0
 void dotaChanged()
 {
     // dota running changed
     OnDotaChanged?.Invoke(this, new DotaChangedEventArgs()
     {
         IsRunning = currentDotaStatus,
     });
 }
Ejemplo n.º 2
0
        private void _worker_OnDotaChanged(object?sender, DotaChangedEventArgs e)
        {
            DotaRunning = e.IsRunning;
            OnDotaChanged?.Invoke(this, e);

            if (!e.IsRunning)
            {
                // user just closed dota
                // TODO: if this is the "primary" steam account, should we overwrite the prefered keybinds?
            }
            else
            {
                // user just launched dota
                // probably not gonna do anything
                WriteKeybinds();
            }
        }