@@ -141,7 +141,7 @@ public static async Task<bool> DownloadFile(string url, Architecture.Path folder
141141 public static class Retrievers
142142 {
143143 private static bool Initialized = false ;
144- private static readonly string RemoteUrl = "https://raw.githubusercontent.com/CodeRedModding/CodeRed-Retrievers/main/Launcher.json" ;
144+ private static string RemoteUrl = "https://raw.githubusercontent.com/CodeRedModding/CodeRed-Retrievers/main/Public /Launcher.json" ;
145145
146146 private static List < InternalSetting > RemoteSettings = new List < InternalSetting > ( )
147147 {
@@ -155,6 +155,7 @@ public static class Retrievers
155155 new InternalSetting ( null , "DiscordUrl" ) ,
156156 new InternalSetting ( null , "KofiUrl" ) ,
157157 new InternalSetting ( null , "NewsUrl" ) ,
158+ new InternalSetting ( null , "LauncherAlt" ) ,
158159 new InternalSetting ( "No changelog provided for the most recent update." , "LauncherChangelog" ) ,
159160 new InternalSetting ( "No changelog provided for the most recent update." , "ModuleChangelog" ) ,
160161 new InternalSetting ( "Bakkes, Martinn, TaylorSasser, ButternCream, GlenHumphrey, ToolB0x, BeardedOranges, and Megasplat/Aberinkula/FrancesElMute." , "Credits" ) ,
@@ -190,6 +191,11 @@ private static async Task<bool> DownloadRemote()
190191 {
191192 RemoteSettings [ i ] . SetValue ( mappedBody [ RemoteSettings [ i ] . Name ] ) ;
192193 Logger . Write ( "Retrieved remote value: " + RemoteSettings [ i ] . GetStringValue ( ) ) ;
194+
195+ if ( ( RemoteSettings [ i ] . Name == "LauncherAlt" ) && ( RemoteSettings [ i ] . GetStringValue ( ) != "null" ) )
196+ {
197+ RemoteUrl = RemoteSettings [ i ] . GetStringValue ( ) ;
198+ }
193199 }
194200 }
195201
0 commit comments