diff --git a/CUE4Parse b/CUE4Parse index d2f6ce6e..ab20414a 160000 --- a/CUE4Parse +++ b/CUE4Parse @@ -1 +1 @@ -Subproject commit d2f6ce6e618576dbbe7f6dd9ed3171f14513182a +Subproject commit ab20414ab3661fbfda06afdd00c8b54bc7797c90 diff --git a/FModel/Settings/EndpointSettings.cs b/FModel/Settings/EndpointSettings.cs index e4b755c3..5b70926f 100644 --- a/FModel/Settings/EndpointSettings.cs +++ b/FModel/Settings/EndpointSettings.cs @@ -10,18 +10,18 @@ public class EndpointSettings : ViewModel { public static EndpointSettings[] Default(string gameName) { - switch (gameName) + return gameName switch { - case "Fortnite": - case "Fortnite [LIVE]": - return new EndpointSettings[] - { - new("https://uedb.dev/svc/api/v1/fortnite/aes", "$.['mainKey','dynamicKeys']"), - new("https://uedb.dev/svc/api/v1/fortnite/mappings", "$.mappings.ZStandard") - }; - default: - return new EndpointSettings[] { new(), new() }; - } + "Fortnite" or "Fortnite [LIVE]" => [ + new("https://uedb.dev/svc/api/v1/fortnite/aes", "$.['mainKey','dynamicKeys']"), + new("https://uedb.dev/svc/api/v1/fortnite/mappings", "$.mappings.ZStandard") + ], + "VALORANT" or "VALORANT [LIVE]" => [ + new("https://uedb.dev/svc/api/v1/valorant/aes", "$.['mainKey','dynamicKeys']"), + new("https://uedb.dev/svc/api/v1/valorant/mappings", "$.mappings.ZStandard") + ], + _ => [new(), new()], + }; } private string _url; @@ -106,4 +106,4 @@ public class EndpointSettings : ViewModel } } } -} \ No newline at end of file +}