public uint GetInstantReplayBufferLength() { ShadowPlayApi.Args.CaptureSessionValue.INT value = new ShadowPlayApi.Args.CaptureSessionValue.INT() { header = new ShadowPlayApi.Args.CaptureSessionValue.Header() { unk01 = 0x08, cmd_version = 1 } }; int size = Marshal.SizeOf(value); int result = GetCaptureSessionParam(0x08, ref value); return(value.value); }
public uint GetInstantReplayStatus(bool manual = false) { ShadowPlayApi.Args.CaptureSessionValue.INT value = new ShadowPlayApi.Args.CaptureSessionValue.INT() { header = new ShadowPlayApi.Args.CaptureSessionValue.Header() { cmd_version = 1, unk01 = 0x1c } }; int size = Marshal.SizeOf(value); GetCaptureSessionParam(0x0c, ref value); return(manual ? value.value : value.result); }