Пример #1
0
        /// <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);
        }
Пример #2
0
        public LoginResult Launch(string sharedCachePath, bool sisi, DirectXVersion dxVersion, long characterID)
        {
            string      ssoToken;
            LoginResult lr = GetSSOToken(sisi, out ssoToken);

            if (lr != LoginResult.Success)
            {
                return(lr);
            }
            if (!App.Launch(ssoToken, sharedCachePath, sisi, dxVersion, characterID))
            {
                return(LoginResult.Error);
            }

            return(LoginResult.Success);
        }
Пример #3
0
        /// <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 ssoToken, string gameName, string gameProfileName, bool sisi, DirectXVersion dxVersion, long characterID)
        {
            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=" + ssoToken + "\"";

            if (dxVersion != DirectXVersion.Default)
            {
                cmdLine += " -addparam \"/triPlatform=" + dxVersion.ToString() + "\"";
            }

            if (characterID != 0)
            {
                cmdLine += " -addparam \"/character=" + characterID + "\"";
            }

            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);
        }
Пример #4
0
 public Direct(string sharedCachePath, DirectXVersion dxVersion, bool useSingularity)
 {
     SharedCachePath   = sharedCachePath;
     UseDirectXVersion = dxVersion;
     UseSingularity    = useSingularity;
 }
Пример #5
0
 public InnerSpace(InnerSpaceGameProfile gameProfile, DirectXVersion dxVersion, bool useSingularity)
 {
     GameProfile       = gameProfile;
     UseDirectXVersion = dxVersion;
     UseSingularity    = useSingularity;
 }
Пример #6
0
        /// <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);
        }
Пример #7
0
        public LoginResult Launch(string gameName, string gameProfileName, bool sisi, DirectXVersion dxVersion)
        {
            string      ssoToken;
            LoginResult lr = GetSSOToken(sisi, out ssoToken);

            if (lr != LoginResult.Success)
            {
                return(lr);
            }
            if (!App.Launch(ssoToken, gameName, gameProfileName, sisi, dxVersion))
            {
                return(LoginResult.Error);
            }

            return(LoginResult.Success);
        }
Пример #8
0
        /// <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 ssoToken, string sharedCachePath, bool sisi, DirectXVersion dxVersion)
        {
            if (ssoToken == null)
            {
                throw new ArgumentNullException("ssoToken");
            }
            if (sharedCachePath == null)
            {
                throw new ArgumentNullException("sharedCachePath");
            }

            string args = "/noconsole /ssoToken=" + ssoToken;

            if (dxVersion != DirectXVersion.Default)
            {
                args += " /triPlatform=" + dxVersion.ToString();
            }

            if (sisi)
            {
                args += "/server:Singularity";
            }

            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);
        }