Refactoring to asynchronous. (partially completed)

This commit is contained in:
BruceChen 2022-12-20 22:41:14 +08:00
parent 7ee08092d4
commit 096ea0c70c
72 changed files with 6033 additions and 5080 deletions

View file

@ -1699,7 +1699,8 @@ namespace MinecraftClient {
/// Looks up a localized string similar to Connect to a server via a proxy instead of connecting directly
///If Mojang session services are blocked on your network, set Enabled_Login=true to login using proxy.
///If the connection to the Minecraft game server is blocked by the firewall, set Enabled_Ingame=true to use a proxy to connect to the game server.
////!\ Make sure your server rules allow Proxies or VPNs before setting enabled=true, or you may face consequences!.
////!\ Make sure your server rules allow Proxies or VPNs before setting enabled=true, or you may face consequences!
///Use "custom", "follow_system" or "disable"..
/// </summary>
internal static string Proxy {
get {
@ -1710,27 +1711,27 @@ namespace MinecraftClient {
/// <summary>
/// Looks up a localized string similar to Whether to connect to the game server through a proxy..
/// </summary>
internal static string Proxy_Enabled_Ingame {
internal static string Proxy_Ingame_Proxy {
get {
return ResourceManager.GetString("Proxy.Enabled_Ingame", resourceCulture);
return ResourceManager.GetString("Proxy.Ingame_Proxy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Whether to connect to the login server through a proxy..
/// </summary>
internal static string Proxy_Enabled_Login {
internal static string Proxy_Login_Proxy {
get {
return ResourceManager.GetString("Proxy.Enabled_Login", resourceCulture);
return ResourceManager.GetString("Proxy.Login_Proxy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Whether to download MCC updates via proxy..
/// </summary>
internal static string Proxy_Enabled_Update {
internal static string Proxy_MCC_Update_Proxy {
get {
return ResourceManager.GetString("Proxy.Enabled_Update", resourceCulture);
return ResourceManager.GetString("Proxy.MCC_Update_Proxy", resourceCulture);
}
}

View file

@ -751,15 +751,16 @@ Usage examples: "/tell &lt;mybot&gt; connect Server1", "/connect Server2"</value
<value>Connect to a server via a proxy instead of connecting directly
If Mojang session services are blocked on your network, set Enabled_Login=true to login using proxy.
If the connection to the Minecraft game server is blocked by the firewall, set Enabled_Ingame=true to use a proxy to connect to the game server.
/!\ Make sure your server rules allow Proxies or VPNs before setting enabled=true, or you may face consequences!</value>
/!\ Make sure your server rules allow Proxies or VPNs before setting enabled=true, or you may face consequences!
Use "custom", "follow_system" or "disable".</value>
</data>
<data name="Proxy.Enabled_Ingame" xml:space="preserve">
<data name="Proxy.Ingame_Proxy" xml:space="preserve">
<value>Whether to connect to the game server through a proxy.</value>
</data>
<data name="Proxy.Enabled_Login" xml:space="preserve">
<data name="Proxy.Login_Proxy" xml:space="preserve">
<value>Whether to connect to the login server through a proxy.</value>
</data>
<data name="Proxy.Enabled_Update" xml:space="preserve">
<data name="Proxy.MCC_Update_Proxy" xml:space="preserve">
<value>Whether to download MCC updates via proxy.</value>
</data>
<data name="Proxy.Password" xml:space="preserve">

View file

@ -2127,7 +2127,7 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Loaded session: {0}:{1}.
/// Looks up a localized string similar to Reads {0} session cache and {1} signature key caches from the disk cache..
/// </summary>
internal static string cache_loaded {
get {
@ -4130,6 +4130,24 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to [Settings] The language code is invalid!.
/// </summary>
internal static string config_invaild_language {
get {
return ResourceManager.GetString("config.invaild_language", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to [Settings] Only Microsoft accounts support logging in using the browser method..
/// </summary>
internal static string config_invaild_login_method {
get {
return ResourceManager.GetString("config.invaild_login_method", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settings have been loaded from {0}.
/// </summary>
@ -4148,15 +4166,6 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to The language code is invalid!.
/// </summary>
internal static string config_Main_Advanced_language_invaild {
get {
return ResourceManager.GetString("config.Main.Advanced.language.invaild", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The current setting is saved as {0}.
/// </summary>
@ -5295,7 +5304,16 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Login :.
/// Looks up a localized string similar to Exceptions occur when applying settings from command line parameters ({0}), and some entries may be ignored..
/// </summary>
internal static string mcc_load_from_args_fail {
get {
return ResourceManager.GetString("mcc.load_from_args_fail", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Login:.
/// </summary>
internal static string mcc_login {
get {
@ -5312,6 +5330,15 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to Timed out when requesting {0}..
/// </summary>
internal static string mcc_network_timeout {
get {
return ResourceManager.GetString("mcc.network_timeout", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to perform SRV lookup for {0}
///{1}: {2}.
@ -5531,7 +5558,7 @@ namespace MinecraftClient {
}
/// <summary>
/// Looks up a localized string similar to Settings file MinecraftClient.ini has been generated..
/// Looks up a localized string similar to The configuration file is saved as {0}.
/// </summary>
internal static string mcc_settings_generated {
get {
@ -5539,6 +5566,15 @@ namespace MinecraftClient {
}
}
/// <summary>
/// Looks up a localized string similar to Error: Unhandled exception:.
/// </summary>
internal static string mcc_unhandled_exception {
get {
return ResourceManager.GetString("mcc.unhandled_exception", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unknown or not supported MC version {0}.
///Switching to autodetection mode..

View file

@ -822,7 +822,7 @@ Add the ID of this chat to "Authorized_Chat_Ids" field in the configuration file
<value>Ignoring profile key token string '{0}': {1}</value>
</data>
<data name="cache.loaded" xml:space="preserve">
<value>Loaded session: {0}:{1}</value>
<value>Reads {0} session cache and {1} signature key caches from the disk cache.</value>
</data>
<data name="cache.loaded_keys" xml:space="preserve">
<value>Loaded profile key, it will be refresh at {0}</value>
@ -1499,8 +1499,8 @@ You can use "/chunk status {0:0.0} {1:0.0} {2:0.0}" to check the chunk loading s
<data name="config.load.fail" xml:space="preserve">
<value>Failed to load settings:</value>
</data>
<data name="config.Main.Advanced.language.invaild" xml:space="preserve">
<value>The language code is invalid!</value>
<data name="config.invaild_language" xml:space="preserve">
<value>[Settings] The language code is invalid!</value>
</data>
<data name="config.saving" xml:space="preserve">
<value>The current setting is saved as {0}</value>
@ -1884,7 +1884,7 @@ Type '{0}quit' to leave the server.</value>
<value>Link: {0}</value>
</data>
<data name="mcc.login" xml:space="preserve">
<value>Login :</value>
<value>Login:</value>
</data>
<data name="mcc.login_basic_io" xml:space="preserve">
<value>Please type the username or email of your choice.</value>
@ -1964,7 +1964,7 @@ MCC is running with default settings.</value>
<value>Cached session is still valid for {0}.</value>
</data>
<data name="mcc.settings_generated" xml:space="preserve">
<value>Settings file MinecraftClient.ini has been generated.</value>
<value>The configuration file is saved as {0}</value>
</data>
<data name="mcc.unknown_version" xml:space="preserve">
<value>Unknown or not supported MC version {0}.
@ -2028,4 +2028,16 @@ Logging in...</value>
<data name="proxy.connected" xml:space="preserve">
<value>Connected to proxy {0}:{1}</value>
</data>
<data name="mcc.load_from_args_fail" xml:space="preserve">
<value>Exceptions occur when applying settings from command line parameters ({0}), and some entries may be ignored.</value>
</data>
<data name="mcc.unhandled_exception" xml:space="preserve">
<value>Error: Unhandled exception:</value>
</data>
<data name="mcc.network_timeout" xml:space="preserve">
<value>Timed out when requesting {0}.</value>
</data>
<data name="config.invaild_login_method" xml:space="preserve">
<value>[Settings] Only Microsoft accounts support logging in using the browser method.</value>
</data>
</root>