/// <summary> /// Launch EVE directly /// </summary> /// <param name="ssoToken"></param> /// <param name="sharedCachePath"></param> /// <param name="sisi"></param> /// <param name="dxVersion"></param> /// <returns></returns> static public bool Launch(string sharedCachePath, bool sisi, DirectXVersion dxVersion, long characterID, EVEAccount.Token token) { //if (ssoToken == null) // throw new ArgumentNullException("ssoToken"); if (sharedCachePath == null) { throw new ArgumentNullException("sharedCachePath"); } string args = "/noconsole /ssoToken=" + token.TokenString; if (dxVersion != DirectXVersion.Default) { args += " /triPlatform=" + dxVersion.ToString(); } if (sisi) { args += " /server:Singularity"; } else { args += " /server:tranquility"; } if (characterID != 0) { args += " /character=" + characterID; } args += " /settingsprofile=ISBEL /machineHash=" + App.Settings.MachineHash + " \"\""; string executable; if (sisi) { executable = App.Settings.GetSingularityEXE(); } else { executable = App.Settings.GetTranquilityEXE(); } if (!System.IO.File.Exists(executable)) { MessageBox.Show("Cannot find exefile.exe for launch -- looking at: " + executable); return(false); } try { System.Diagnostics.Process.Start(executable, args); } catch (Exception e) { MessageBox.Show("Launch failed. executable=" + executable + "; args=" + args + System.Environment.NewLine + e.ToString()); return(false); } return(true); }
/// <summary> /// Have Inner Space launch EVE via a specified Game and Game Profile /// </summary> /// <param name="ssoToken"></param> /// <param name="gameName"></param> /// <param name="gameProfileName"></param> /// <param name="sisi"></param> /// <param name="dxVersion"></param> /// <returns></returns> static public bool Launch(string gameName, string gameProfileName, bool sisi, DirectXVersion dxVersion, long characterID, EVEAccount.Token token) { //if (ssoToken == null) // throw new ArgumentNullException("ssoToken"); if (gameName == null) { throw new ArgumentNullException("gameName"); } if (gameProfileName == null) { throw new ArgumentNullException("gameProfileName"); } string cmdLine = "open \"" + gameName + "\" \"" + gameProfileName + "\" -addparam \"/noconsole\" -addparam \"/ssoToken=" + token.TokenString + "\""; if (dxVersion != DirectXVersion.Default) { cmdLine += " -addparam \"/triPlatform=" + dxVersion.ToString() + "\""; } if (characterID != 0) { cmdLine += " -addparam \"/character=" + characterID + "\""; } if (sisi) { cmdLine += " -addparam \"/server:Singularity\""; } else { cmdLine += " -addparam \"/server:tranquility\""; } cmdLine += " -addparam \"settingsprofile=ISBEL\" -addparam \"/machineHash=" + App.Settings.MachineHash + "\" \"\""; try { System.Diagnostics.Process.Start(App.ISExecutable, cmdLine); } catch (Exception e) { MessageBox.Show("Launch failed. executable=" + App.ISExecutable + "; args=" + cmdLine + System.Environment.NewLine + e.ToString()); return(false); } return(true); }