public override void InitInternals() { this._WriteScreenshot = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FWriteScreenshot>(Marshal.ReadIntPtr(this.VTable, 0)); this._AddScreenshotToLibrary = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FAddScreenshotToLibrary>(Marshal.ReadIntPtr(this.VTable, 8)); this._TriggerScreenshot = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FTriggerScreenshot>(Marshal.ReadIntPtr(this.VTable, 16)); this._HookScreenshots = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FHookScreenshots>(Marshal.ReadIntPtr(this.VTable, 24)); this._SetLocation = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FSetLocation>(Marshal.ReadIntPtr(this.VTable, 32)); this._TagUser = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FTagUser>(Marshal.ReadIntPtr(this.VTable, 40)); this._TagPublishedFile = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FTagPublishedFile>(Marshal.ReadIntPtr(this.VTable, 48)); this._IsScreenshotsHooked = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FIsScreenshotsHooked>(Marshal.ReadIntPtr(this.VTable, 56)); this._AddVRScreenshotToLibrary = Marshal.GetDelegateForFunctionPointer <ISteamScreenshots.FAddVRScreenshotToLibrary>(Marshal.ReadIntPtr(this.VTable, 64)); }
internal override void Shutdown() { base.Shutdown(); this._WriteScreenshot = null; this._AddScreenshotToLibrary = null; this._TriggerScreenshot = null; this._HookScreenshots = null; this._SetLocation = null; this._TagUser = null; this._TagPublishedFile = null; this._IsScreenshotsHooked = null; this._AddVRScreenshotToLibrary = null; }