public static void SetHotfixedLocResDict() { if (!FProp.ELauncherToken.StartsWith("eg1~") || AuthFlow.IsLauncherTokenExpired()) { AuthFlow.SetOAuthLauncherToken(); } if (!AuthFlow.IsLauncherTokenExpired() && FProp.ELauncherToken.StartsWith("eg1~")) { string response = Requests.GetLauncherEndpoint("https://fortnite-public-service-prod11.ol.epicgames.com/fortnite/api/cloudstorage/system/a22d837b6a2b46349421259c0a5411bf"); if (!string.IsNullOrEmpty(response)) { string[] lines = response.Split('\n'); DebugHelper.WriteLine(".PAKs: Populating hotfixed string dictionary"); HotfixLocResDict = new Dictionary <string, Dictionary <string, Dictionary <string, Dictionary <string, string> > > >(); foreach (string line in lines) { HFedStringsProcess(line); } DebugHelper.WriteLine(".PAKs: Populated hotfixed string dictionary"); } else { DebugHelper.WriteLine(".PAKs: Hotfixed strings endpoint returned nothing!!! this isn't normal"); string pdd = Path.GetFullPath(Path.Combine(FProp.FPak_Path, @"..\..\PersistentDownloadDir\EMS\")); if (File.Exists(pdd + "a22d837b6a2b46349421259c0a5411bf")) { DebugHelper.WriteLine(".PAKs: Populating hotfixed string dictionary at " + pdd + "a22d837b6a2b46349421259c0a5411bf"); HotfixLocResDict = new Dictionary <string, Dictionary <string, Dictionary <string, Dictionary <string, string> > > >(); using (StreamReader sr = new StreamReader(File.Open(pdd + "a22d837b6a2b46349421259c0a5411bf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite))) { while (!sr.EndOfStream) { string line = sr.ReadLine(); HFedStringsProcess(line); } } DebugHelper.WriteLine(".PAKs: Populated hotfixed string dictionary"); } else { DebugHelper.WriteLine(".PAKs: No such file or directory " + pdd + "a22d837b6a2b46349421259c0a5411bf"); } } } }