Skip to content

Commit

Permalink
Add install end telemetry AIWPF
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgamerz committed Nov 7, 2020
1 parent 5ee7a25 commit 27b8928
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ALOTInstallerWPF/InstallerUI/InstallerUIController.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@ internal void StartInstall(bool debugMode = false)
notifyClosingWillBreakGame(false);
ContinueButtonVisible = true;
fadeoutMusic();
// Installation has completed
if (b.Error == null)
{
Expand Down Expand Up @@ -379,6 +380,12 @@ private void showStorefrontNoUpdateUI(MEGame obj)

private void handleInstallResult(InstallStep.InstallResult ir, string installString)
{
CoreAnalytics.TrackEvent?.Invoke("Install Step Finished", new Dictionary<string, string>()
{
{"Result", ir.ToString()},
{"Game", InstallOptions.InstallTarget.Game.ToString()},
{"LOD setting", InstallOptions.Limit2K ? "2K" : "4K"}
});
TipTimer?.Stop(); //Stop the tip rotation
var installedInfo = InstallOptions.InstallTarget.GetInstalledALOTInfo();
var installedTextures = InstallOptions.FilesToInstall.Any(x => !(x is PreinstallMod)); //Debug mode will not have files to install set
Expand Down

0 comments on commit 27b8928

Please sign in to comment.