mirror of
https://github.com/4sval/FModel.git
synced 2026-08-27 20:04:25 -05:00
FModel x Ramirez
This commit is contained in:
@@ -10,14 +10,14 @@ namespace FModel.Utils
|
||||
{
|
||||
public const string BENBOT_AES = "https://benbotfn.tk/api/v1/aes";
|
||||
public const string BENBOT_HOTFIXES = "https://benbotfn.tk/api/v1/hotfixes";
|
||||
public const string FMODEL_JSON = "https://cdn.asval.tk/d/FModel/NotFModel.json";
|
||||
public const string FMODEL_JSON = "https://dl.dropbox.com/s/sxyaqo6zu1drlea/FModel.json?dl=0";
|
||||
|
||||
public static async Task<string> GetStringEndpoint(string url) => await GetStringEndpoint(url, string.Empty);
|
||||
public static async Task<string> GetStringEndpoint(string url, string token)
|
||||
{
|
||||
DebugHelper.WriteLine("{0} {1} {2} {3}", "[FModel]", "[Endpoints]", "[GET]", url);
|
||||
|
||||
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(3) })
|
||||
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(2) })
|
||||
using (HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri(url)))
|
||||
{
|
||||
if (!string.IsNullOrEmpty(token))
|
||||
@@ -51,7 +51,7 @@ namespace FModel.Utils
|
||||
url += $"?version={Uri.EscapeDataString(query)}";
|
||||
|
||||
DebugHelper.WriteLine("{0} {1} {2} {3}", "[FModel]", "[Endpoints]", "[GET]", url);
|
||||
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(3) })
|
||||
using (HttpClient client = new HttpClient { Timeout = TimeSpan.FromSeconds(2) })
|
||||
using (HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Get, new Uri(url)))
|
||||
{
|
||||
try
|
||||
|
||||
@@ -101,10 +101,6 @@ namespace FModel.Utils
|
||||
return dRet;
|
||||
}
|
||||
|
||||
// i guess this save times
|
||||
if ((ELanguage)Properties.Settings.Default.AssetsLanguage == ELanguage.English)
|
||||
return defaultText;
|
||||
|
||||
if (_fortniteLocalizationDict.Count > 0 &&
|
||||
_fortniteLocalizationDict.TryGetValue(sNamespace, out var dict) &&
|
||||
dict.TryGetValue(sKey, out var ret))
|
||||
|
||||
Reference in New Issue
Block a user