diff --git a/src/Ryujinx.HLE/Switch.cs b/src/Ryujinx.HLE/Switch.cs index e1aa8e0e4..03fba1514 100644 --- a/src/Ryujinx.HLE/Switch.cs +++ b/src/Ryujinx.HLE/Switch.cs @@ -20,6 +20,18 @@ namespace Ryujinx.HLE { public class Switch : IDisposable { + /// + /// Currently running emulated Switch, if there is one. + /// + /// Proper usage of this property null checks it before use, unless the caller is certain that the emulation is running. + /// + /// + /// In case the emulation is running, there might be a way to directly pass the instance, which is preferred. + /// + /// + /// The instance is set to this on any instantiation, and set to null on any disposal. + /// + /// public static Switch Shared { get; private set; } public HleConfiguration Configuration { get; }