Skip to content

Commit b8147b3

Browse files
committed
valorant live fix (wip)
1 parent e05baeb commit b8147b3

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

FModel/ViewModels/ApiEndpoints/ValorantApiEndpoint.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ namespace FModel.ViewModels.ApiEndpoints;
2222

2323
public class ValorantApiEndpoint : AbstractApiProvider
2424
{
25-
private const string _URL = "https://fmodel.fortnite-api.com/valorant/v2/manifest";
25+
private const string _URL = "https://valorant-api.com/v1/fmodel/manifest";
2626

2727
public ValorantApiEndpoint(RestClient client) : base(client) { }
2828

2929
public async Task<VManifest> GetManifestAsync(CancellationToken token)
3030
{
3131
var request = new FRestRequest(_URL);
3232
var response = await _client.ExecuteAsync(request, token).ConfigureAwait(false);
33+
if (!response.IsSuccessful)
34+
return null;
3335
return new VManifest(response.RawBytes);
3436
}
3537

@@ -175,7 +177,7 @@ public readonly struct VChunk
175177
public readonly ulong Id;
176178
public readonly uint Size;
177179

178-
public string GetUrl() => $"https://fmodel.fortnite-api.com/valorant/v2/chunks/{Id}";
180+
public string GetUrl() => $"https://valorant-api.com/v1/fmodel/chunks/{Id}";
179181
}
180182

181183
public class VPakStream : RandomAccessStream, ICloneable

FModel/ViewModels/CUE4ParseViewModel.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public void Extract(CancellationToken cancellationToken, GameFile entry, bool ad
652652
case "cube":
653653
case "usda":
654654
case "ocio":
655-
case "data" when Provider.ProjectName is "OakGame":
655+
case "data" when Provider.ProjectName is "OakGame":
656656
case "ini":
657657
case "txt":
658658
case "log":
@@ -1190,4 +1190,4 @@ private static bool HasFlag(EBulkType a, EBulkType b)
11901190
{
11911191
return (a & b) == b;
11921192
}
1193-
}
1193+
}

0 commit comments

Comments
 (0)