mirror of
https://github.com/4sval/FModel.git
synced 2026-05-07 05:21:31 -05:00
Prevents Token generation for OnDemand
Before it was generating a token no matter the Game, now it's not needed
This commit is contained in:
parent
0d3a08cbc9
commit
17e0e1228b
|
|
@ -222,14 +222,12 @@ public class CUE4ParseViewModel : ViewModel
|
|||
|
||||
public async Task Initialize()
|
||||
{
|
||||
await _apiEndpointView.EpicApi.VerifyAuth(CancellationToken.None);
|
||||
await _threadWorkerView.Begin(cancellationToken =>
|
||||
{
|
||||
Provider.OnDemandOptions = new IoStoreOnDemandOptions
|
||||
{
|
||||
ChunkHostUri = new Uri("https://download.epicgames.com/", UriKind.Absolute),
|
||||
ChunkCacheDirectory = Directory.CreateDirectory(Path.Combine(UserSettings.Default.OutputDirectory, ".data")),
|
||||
Authorization = new AuthenticationHeaderValue("Bearer", UserSettings.Default.LastAuthResponse.AccessToken),
|
||||
Timeout = TimeSpan.FromSeconds(30)
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user