From e832951831f6ef3fbcc7f11a5f0c1b597a740a49 Mon Sep 17 00:00:00 2001 From: goyuken Date: Mon, 30 Dec 2013 20:44:38 +0000 Subject: [PATCH] saturn: support the DRIVE LIGHT. the DRIVE LIGHT LIGHTS UP whenever the CD is being READ for any reason. the DRIVE LIGHT DOES NOT LIGHT UP whenever the CD is stopped, seeking, or smoking. --- BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs b/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs index b1be151dce..13a5b8772d 100644 --- a/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs +++ b/BizHawk.Emulation.Cores/Consoles/Sega/Saturn/Yabause.cs @@ -55,6 +55,7 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn InputCallbackH = new LibYabause.InputCallback(() => CoreComm.InputCallback.Call()); LibYabause.libyabause_setinputcallback(InputCallbackH); + CoreComm.UsesDriveLed = true; } void Init(byte[] bios) @@ -220,6 +221,8 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn LibYabause.libyabause_setpads(p11, p12, p21, p22); + CoreComm.DriveLED = false; + IsLagFrame = LibYabause.libyabause_frameadvance(out w, out h, out nsamp); BufferWidth = w; BufferHeight = h; @@ -626,6 +629,7 @@ namespace BizHawk.Emulation.Cores.Sega.Saturn return 0; // failure } Marshal.Copy(data, 0, dest, 2352); + CoreComm.DriveLED = true; return 1; // success } ///