Skip to content

Commit

Permalink
Added method to writeapplist after generating dlc on start game.
Browse files Browse the repository at this point in the history
  • Loading branch information
turusudiro committed Sep 15, 2023
1 parent f37e801 commit 9a45b2d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Common/GreenLumaCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ public static Task InjectDLC(OnGameStartingEventArgs args, SteamEmuUtility plugi
global.Text = $"Getting DLC Info for {args.Game.Name}";
global.CurrentProgressValue++;
Thread.Sleep(TimeSpan.FromSeconds(1));
Task.Run(() => Steamservice.GetDLCStore(args.Game, global));
var job = Steamservice.GetDLCStore(args.Game, global);
if (job.GetAwaiter().GetResult() == true)
{
foreach (string line in File.ReadLines(dlcpath))
{
WriteAppList(line, count);
count++;
}
}
}, progress);
return Task.CompletedTask;
}
Expand Down

0 comments on commit 9a45b2d

Please sign in to comment.