fix scheme displayname

This commit is contained in:
Lightczx
2023-05-10 22:12:02 +08:00
parent 0f9b906b7b
commit c5a4226662
4 changed files with 9 additions and 6 deletions

View File

@@ -6,6 +6,7 @@ namespace Snap.Hutao.Model.Intrinsic;
/// <summary>
/// 渠道类型
/// </summary>
[Localization]
internal enum ChannelType
{
/// <summary>

View File

@@ -12,7 +12,7 @@
<Identity
Name="60568DGPStudio.SnapHutao"
Publisher="CN=35C8E923-85DF-49A7-9172-B39DC6312C52"
Version="1.6.2.0" />
Version="1.6.3.0" />
<Properties>
<DisplayName>Snap Hutao</DisplayName>

View File

@@ -51,7 +51,7 @@ internal sealed partial class LaunchScheme
Key = SdkStaticLauncherGlobalKey,
Channel = ChannelType.Official,
SubChannel = SubChannelType.Default,
IsOversea = false,
IsOversea = true,
};
private static readonly LaunchScheme ServerGlobalChannelOfficialSubChannelEpic = new()
@@ -60,7 +60,7 @@ internal sealed partial class LaunchScheme
Key = SdkStaticLauncherGlobalKey,
Channel = ChannelType.Official,
SubChannel = SubChannelType.Epic,
IsOversea = false,
IsOversea = true,
};
private static readonly LaunchScheme ServerGlobalChannelOfficialSubChannelGoogle = new()
@@ -69,7 +69,7 @@ internal sealed partial class LaunchScheme
Key = SdkStaticLauncherGlobalKey,
Channel = ChannelType.Official,
SubChannel = SubChannelType.Google,
IsOversea = false,
IsOversea = true,
};
/// <summary>

View File

@@ -18,13 +18,15 @@ internal sealed partial class LaunchScheme
{
get
{
return (Channel, IsOversea) switch
string name = (Channel, IsOversea) switch
{
(ChannelType.Official, false) => SH.ModelBindingLaunchGameLaunchSchemeChinese,
(ChannelType.Bili, false) => SH.ModelBindingLaunchGameLaunchSchemeBilibili,
(_, true) => $"{SH.ModelBindingLaunchGameLaunchSchemeOversea} | {SubChannel}",
(_, true) => SH.ModelBindingLaunchGameLaunchSchemeOversea,
_ => throw Must.NeverHappen(),
};
return $"{name} | {SubChannel}";
}
}