Updated HalReadSMCTrayState to report TRAY_OPEN

This allows dashboard versions 1.00.4034.01 and 1.00.4817.01 to run, but with very broken graphics. 1.00.4817.01 works better of the two
This commit is contained in:
Luke Usher 2016-08-20 19:02:23 +01:00
parent d2f8b9a1d3
commit 714593a0ef
1 changed files with 4 additions and 3 deletions

View File

@ -1438,9 +1438,10 @@ XBSYSAPI EXPORTNUM(9) VOID NTAPI xboxkrnl::HalReadSMCTrayState
// TODO: Make this configurable?
// TODO: What is the count parameter for??
// Pretent the tray is closed and media is present
// If we report TRAY_CLOSED_NO_MEDIA, dashboard will attempt DeviceIoControl
*State = TRAY_CLOSED_MEDIA_PRESENT;
// Pretend the tray is open
// TRAY_CLOSED_NO_MEDIA causes Dashboard to call DeviceIoControl, which we do not implement
// TRAY_CLOSED_MEDIA_PRESENT causes Dashboard to attempt to launch media, causing errors.
*State = TRAY_OPEN;
// *Count = 1;
EmuSwapFS(); // Xbox FS