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.

This commit is contained in:
goyuken 2013-12-30 20:44:38 +00:00
parent 8f5413643b
commit e832951831
1 changed files with 4 additions and 0 deletions

View File

@ -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
}
/// <summary>