Skip to content

Commit

Permalink
cleanup testing code.
Browse files Browse the repository at this point in the history
  • Loading branch information
turusudiro committed Nov 5, 2023
1 parent ec63850 commit fef1869
Showing 1 changed file with 0 additions and 54 deletions.
54 changes: 0 additions & 54 deletions Services/SteamService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,6 @@ public bool GetDLCSteamKit2(List<uint> appids, GlobalProgressActionArgs progress
OnDisconnected(callback, progressOptions);
});

//manager.Subscribe<SteamApps.PICSProductInfoCallback>(callback =>
//{
// PICSProductInfo(callback, listdlc, progressOptions, CommonPath, appids);
//});

manager.Subscribe<SteamUser.LoggedOnCallback>(callback =>
{
OnLoggedOn(callback, progressOptions);
Expand Down Expand Up @@ -122,25 +117,6 @@ public bool GetDLCSteamKit2(List<uint> appids, GlobalProgressActionArgs progress
manager.Subscribe<SteamApps.PICSProductInfoCallback>(callback =>
{
count = GenerateDLCGreenLuma(callback, progressOptions, appid, CommonPath, listdlc, count);
//if (callback.Apps.ContainsKey(appid))
//{
// var productInfo = callback.Apps[appid];
// if (productInfo.KeyValues["extended"]["listofdlc"] == KeyValue.Invalid)
// {
// logger.Error("Keyvalue is invalid, no DLC Found!");
// progressOptions.Text = ("Keyvalue is invalid, no DLC Found!");
// }
// else
// {
// if (!Directory.Exists(CommonPath))
// {
// Directory.CreateDirectory(CommonPath);
// }
// var listofdlc = productInfo.KeyValues["extended"]["listofdlc"];
// listdlc.AddRange(listofdlc.Value.Split(',').Select(s => s.Trim()).ToList());
// File.WriteAllLines($"{CommonPath}\\{appid}.txt", listdlc);
// }
//}
});
}
steamClient.Disconnect();
Expand Down Expand Up @@ -181,36 +157,6 @@ int GenerateDLCGreenLuma(SteamApps.PICSProductInfoCallback callback, GlobalProgr
}
return count;
}
//void PICSProductInfo(SteamApps.PICSProductInfoCallback callback, List<string> listdlc, GlobalProgressActionArgs a, string CommonPath, uint appid)
//{
// logger.Info("Getting DLC");
// a.Text = "Getting Product Info";
// if (callback.Apps.ContainsKey(appid))
// {
// var productInfo = callback.Apps[appid];
// //var tes = productInfo.KeyValues["extended"].Children;
// //foreach (var line in tes)
// //{
// // logger.Info(line.ToString());
// //}
// if (productInfo.KeyValues["extended"]["listofdlc"] == KeyValue.Invalid)
// {
// logger.Error("Keyvalue is invalid, no DLC Found!");
// a.Text = ("Keyvalue is invalid, no DLC Found!");
// }
// else
// {
// if (!Directory.Exists(CommonPath))
// {
// Directory.CreateDirectory(CommonPath);
// }
// var listofdlc = productInfo.KeyValues["extended"]["listofdlc"];
// listdlc.AddRange(listofdlc.Value.Split(',').Select(s => s.Trim()).ToList());
// //listdlc.AddRange(filter);
// //logger.Info(filter.Count.ToString());
// }
// }
//}

void OnConnected(SteamClient.ConnectedCallback callback, GlobalProgressActionArgs a)
{
Expand Down

0 comments on commit fef1869

Please sign in to comment.