public LoginResult Launch(ILaunchTarget launchTarget) { return(launchTarget.EVEAccount.Launch(GameProfile.Game, GameProfile.GameProfile, App.Settings.UseSingularity, UseDirectXVersion, launchTarget.CharacterID)); throw new NotImplementedException(); }
public LoginResult Launch(ILaunchTarget launchTarget) { return(launchTarget.EVEAccount.Launch(SharedCachePath, App.Settings.UseSingularity, UseDirectXVersion, launchTarget.CharacterID)); }
void Timer_Tick(object sender, EventArgs e) { if (Accounts.Count == 0) { Stop(); return; } // determine if we're waiting on master key transfer... if (App.Settings.UseMasterKey && !App.Settings.HasPasswordMasterKey) { TimeSpan sinceKeyRequested = DateTime.Now - App.Settings.MasterKeyRequested; if (sinceKeyRequested.TotalSeconds < 2) { // waiting ... DelaySeconds = (float)Math.Truncate((2 - (float)sinceKeyRequested.TotalSeconds) * 100.0f) / 100.0f; return; } } TimeSpan SinceLastLaunch = DateTime.Now - LastLaunch; if (SinceLastLaunch.TotalSeconds < App.Settings.LaunchDelay) { // waiting ... DelaySeconds = (float)Math.Truncate((App.Settings.LaunchDelay - (float)SinceLastLaunch.TotalSeconds) * 100.0f) / 100.0f; return; } else { DelaySeconds = 0; } ILaunchTarget a = Accounts[0]; LoginResult lr = LoginResult.Error; try { lr = Launcher.Launch(a); } catch (ArgumentNullException ane) { switch (ane.ParamName) { case "sharedCachePath": { AddDetailsLine("Missing EVE SharedCachePath. Aborting!"); } break; case "ssoToken": { AddDetailsLine("Failed to retrieve SSO Token from EVE servers. Aborting!"); } break; case "gameName": { AddDetailsLine("Missing appropriate Game Profile. Aborting!"); } break; case "gameProfileName": { AddDetailsLine("Missing appropriate Game Profile. Aborting!"); } break; default: AddDetailsLine(ane.ToString()); break; } } catch (Exception ex) { AddDetailsLine(ex.ToString()); } switch (lr) { case LoginResult.Success: AccountsLaunched.Add(a); Accounts.Remove(a); LastLaunch = DateTime.Now; AddDetailsLine("Account '" + a.EVEAccount.Username + "' launched"); break; case LoginResult.Error: Accounts.Remove(a); LastLaunch = DateTime.Now; AddDetailsLine("Account '" + a.EVEAccount.Username + "' cannot be launched, skip to the next one if there is any."); break; default: AddDetailsLine("Account '" + a.EVEAccount.Username + "' failed to launch: " + lr.ToString() + ". Aborting!"); NumErrors++; Stop(); break; } }