Class DesktopPackageSourceMonitor
Monitors the installation source (app store) of the running build on desktop and notifies observers with a DesktopSourceStatus.
Implements
Inherited Members
Namespace: GUPS.AntiCheat.Monitor.Desktop
Assembly: cs.temp.dll.dll
Syntax
public class DesktopPackageSourceMonitor : AMonitor<IDesktopStatus>
Remarks
The lookup is performed once on OnStart() and is only available on Windows, macOS, and Linux players. Steam, the Epic Games Store (official launcher, plus Legendary and the Heroic Games Launcher), and GOG are recognized on all three. The Microsoft Store, including Xbox Game Pass for PC, is recognized on Windows only. The Unity editor never classifies: walking up from the project folder can hit an unrelated library.
The result is a weak local signal. Unknown is used when no marker matches, more than one store matches, or a check cannot be completed. This monitor does not decide that the install is unauthorized. PackageSourceDetector does that.
Properties
Name
Gets the display name of the monitor.
Declaration
public override String Name { get; }
Property Value
| Type | Description |
|---|---|
| String |
Overrides
Methods
ForceRead()
Classifies the installation source again and returns it. Does not notify observers.
Declaration
public override IWatchedSubject ForceRead()
Returns
| Type | Description |
|---|---|
| IWatchedSubject | The installation source. |
Overrides
OnStart()
Reads the installation source on start and notifies observers with a DesktopSourceStatus.
Declaration
protected override void OnStart()