Exemple #1
0
        //Launcher Version
        public static String GetLauncherVersion(String defaultValue = "1.0.0.0")
        {
            String _versionLauncher = defaultValue;

            try
            {
                _versionLauncher = IniReader.ReadValue("Launcher", "versionLauncher", _configFile);
                if (_versionLauncher == "")
                {
                    _versionLauncher = defaultValue;
                    IniReader.WriteValue("Launcher", "versionLauncher", _versionLauncher, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_versionLauncher);
        }
Exemple #2
0
        //Launcher Title
        public static String GetLauncherTitle(String defaultValue = "Tera cTLauncher")
        {
            String _titleLauncher = defaultValue;

            try
            {
                _titleLauncher = IniReader.ReadValue("Launcher", "titleLauncher", _configFile);
                if (_titleLauncher == "")
                {
                    _titleLauncher = defaultValue;
                    IniReader.WriteValue("Launcher", "titleLauncher", _titleLauncher, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_titleLauncher);
        }
Exemple #3
0
        //Launcher Website Url
        public static String GetLauncherWebsiteUrl(String defaultValue = "http://5.9.181.133/tera/launcher/index.php")
        {
            String _urlLauncherWebsite = defaultValue;

            try
            {
                _urlLauncherWebsite = IniReader.ReadValue("Launcher", "urlLauncherWebsite", _configFile);
                if (_urlLauncherWebsite == "")
                {
                    _urlLauncherWebsite = defaultValue;
                    IniReader.WriteValue("Launcher", "urlLauncherWebsite", _urlLauncherWebsite, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlLauncherWebsite);
        }
Exemple #4
0
        //Launcher Auth Url
        public static String GetLauncherAuthUrl(String defaultValue = "http://5.9.181.133/tera/auth.php")
        {
            String _urlLauncherAuth = defaultValue;

            try
            {
                _urlLauncherAuth = IniReader.ReadValue("Launcher", "urlLauncherAuth", _configFile);
                if (_urlLauncherAuth == "")
                {
                    _urlLauncherAuth = defaultValue;
                    IniReader.WriteValue("Launcher", "urlLauncherAuth", _urlLauncherAuth, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlLauncherAuth);
        }
Exemple #5
0
        //Version Url
        public static String GetRemoteVersionUrl(String defaultValue = "http://5.9.181.133/tera/launcher/cTlauncher.clv")
        {
            String _urlRemoteVersion = defaultValue;

            try
            {
                _urlRemoteVersion = IniReader.ReadValue("Launcher", "urlRemoteVersion", _configFile);
                if (_urlRemoteVersion == "")
                {
                    _urlRemoteVersion = defaultValue;
                    IniReader.WriteValue("Launcher", "urlRemoteVersion", _urlRemoteVersion, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlRemoteVersion);
        }
Exemple #6
0
        //Server Port
        public static String GetServerPort(String defaultValue = "80")
        {
            String _portServer = defaultValue;

            try
            {
                _portServer = IniReader.ReadValue("Launcher", "portServer", _configFile);
                if (_portServer == "")
                {
                    _portServer = defaultValue;
                    IniReader.WriteValue("Launcher", "portServer", _portServer, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_portServer);
        }
Exemple #7
0
        //Server Url
        public static String GetServerUrl(String defaultValue = "5.9.181.133")
        {
            String _urlServer = defaultValue;

            try
            {
                _urlServer = IniReader.ReadValue("Launcher", "urlServer", _configFile);
                if (_urlServer == "")
                {
                    _urlServer = defaultValue;
                    IniReader.WriteValue("Launcher", "urlServer", _urlServer, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlServer);
        }
Exemple #8
0
        //PatchDownload File
        public static String GetPatchDownloadFile(String defaultValue = "cTlauncher.zip")
        {
            String _filePatchDownload = defaultValue;

            try
            {
                _filePatchDownload = IniReader.ReadValue("Launcher", "filePatchDownload", _configFile);
                if (_filePatchDownload == "")
                {
                    _filePatchDownload = defaultValue;
                    IniReader.WriteValue("Launcher", "filePatchDownload", _filePatchDownload, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_filePatchDownload);
        }
Exemple #9
0
        //PatchDownload Url
        public static String GetPatchDownloadUrl(String defaultValue = "http://5.9.181.133/tera/launcher/")
        {
            String _urlPatchDownload = defaultValue;

            try
            {
                _urlPatchDownload = IniReader.ReadValue("Launcher", "urlPatchDownload", _configFile);
                if (_urlPatchDownload == "")
                {
                    _urlPatchDownload = defaultValue;
                    IniReader.WriteValue("Launcher", "urlPatchDownload", _urlPatchDownload, _configFile);
                }
            }
            catch (Exception /*ex*/)
            {
            }
            return(_urlPatchDownload);
        }