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:
Krowe Moh 2026-03-23 23:57:21 +11:00
parent 0d3a08cbc9
commit 17e0e1228b

View File

@ -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)
};