From 0b11888ed22d9fda128a1665a9ab7e7b5ca0372b Mon Sep 17 00:00:00 2001 From: Garrett Koleda Date: Fri, 3 May 2024 23:56:48 -0400 Subject: [PATCH] Change default mapping settings for Fortnite and Fortnite [LIVE] Modifies the RegEx to display the first value in the array rather than only Oodle. Having this restriction prevents FModel from automatically loading mappings of other compression types. FModel and CUE4Parse both natively support all upstream compression types of the Usmap format, so it's unnecessary. --- FModel/Settings/EndpointSettings.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FModel/Settings/EndpointSettings.cs b/FModel/Settings/EndpointSettings.cs index 9f0bd641..24f1960b 100644 --- a/FModel/Settings/EndpointSettings.cs +++ b/FModel/Settings/EndpointSettings.cs @@ -17,7 +17,8 @@ public class EndpointSettings : ViewModel return new EndpointSettings[] { new("https://fortnitecentral.genxgames.gg/api/v1/aes", "$.['mainKey','dynamicKeys']"), - new("https://fortnitecentral.genxgames.gg/api/v1/mappings", "$.[?(@.meta.compressionMethod=='Oodle')].['url','fileName']") + // new("https://fortnitecentral.genxgames.gg/api/v1/mappings", "$.[?(@.meta.compressionMethod=='Oodle')].['url','fileName']") + new("https://fortnitecentral.genxgames.gg/api/v1/mappings", "$.[0].['url','fileName']") // just get the first available, not just oodle! (Unfortunately not default except when resetting settings) }; default: return new EndpointSettings[] { new(), new() };