Exemplo n.º 1
0
        LaunchCommand()
        {
            string file = "launchcommand.conf";

            if (File.Exists(file))
            {
                mConfig = LoadFromFile(file);
            }
            else
            {
                mConfig = new LaunchCommandConfig();
            }

            if (String.IsNullOrEmpty(mConfig.FullServerCommand))
            {
                mConfig.FullServerCommand = "[SERVERPATH]plasticd --console";
            }

            if (String.IsNullOrEmpty(mConfig.CmShellComand))
            {
                mConfig.CmShellComand = string.Format("{0} shell --logo", mExecutablePath);
            }

            if (mConfig.ClientPath == null)
            {
                mConfig.ClientPath = string.Empty;
            }

            if (mConfig.CmShellComand == null)
            {
                mConfig.CmShellComand = string.Empty;
            }
        }
Exemplo n.º 2
0
        private LaunchCommand()
        {
            string file = "launchcommand.conf";
            if (File.Exists(file))
            {
                mConfig = LoadFromFile(file);
            }
            else
            {
                mConfig = new LaunchCommandConfig();
            }

            if (mConfig.FullServerCommand == null || mConfig.FullServerCommand == string.Empty)
                mConfig.FullServerCommand = "[SERVERPATH]plasticd --console";

            if (mConfig.CmShellComand == null || mConfig.CmShellComand == string.Empty)
                mConfig.CmShellComand = string.Format("{0} shell --logo", mExecutablePath);

            if (mConfig.ClientPath == null)
                mConfig.ClientPath = string.Empty;

            if (mConfig.CmShellComand == null)
                mConfig.CmShellComand = string.Empty;
        }