You need to sign in or sign up before continuing.
Commit fc53fb9b authored by SherryChaos's avatar SherryChaos

add hosts2.conf

parent b0362ea2
...@@ -71,8 +71,8 @@ namespace MDPro3.UI ...@@ -71,8 +71,8 @@ namespace MDPro3.UI
public string port; public string port;
public string password; public string password;
} }
private List<HostAddress> addresses = new(); private readonly List<HostAddress> addresses = new();
private const string PATH_ADDRESS_SAVE = "Data/hosts.conf"; private readonly string PATH_ADDRESS_SAVE = Utility.Language.UseChinese() ? "Data/hosts.conf" : "Data/hosts2.conf";
private SuperScrollView hostSuperScrollView; private SuperScrollView hostSuperScrollView;
private bool addressedLoaded = false; private bool addressedLoaded = false;
......
...@@ -65,6 +65,14 @@ namespace MDPro3.Utility ...@@ -65,6 +65,14 @@ namespace MDPro3.Utility
return string.Empty; return string.Empty;
} }
public static bool UseChinese()
{
var language = GetConfig();
if (language == SimplifiedChinese || language == TraditionalChinese)
return true;
return false;
}
public static bool UseLatin(string language) public static bool UseLatin(string language)
{ {
if (language == English if (language == English
......
Pre-Release_Server mygo.superpre.pro 888
Pre-Release_Server_2 mygo2.superpre.pro 888
Koishi_OCG koishi.momobako.com 7210
Mercury s1.ygo233.com 233
Evolution server.evolutionygo.com 7711
Evolution_TCG server.evolutionygo.com 7711 TCG
Evolution_OCG server.evolutionygo.com 7711 OCG
Evolution_Genesys server.evolutionygo.com 7711 G
Evolution_MD server.evolutionygo.com 7711 MD
Evolution_TCGPRE server.evolutionygo.com 7711 TCGPRE
Evolution_OCGPRE server.evolutionygo.com 7711 OCGPRE
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment