From 714593a0ef50b910a5d4c69d6d9cbb797526d89b Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Sat, 20 Aug 2016 19:02:23 +0100 Subject: [PATCH] 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 --- src/CxbxKrnl/EmuKrnl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CxbxKrnl/EmuKrnl.cpp b/src/CxbxKrnl/EmuKrnl.cpp index c574c3a3c..73ec40f85 100644 --- a/src/CxbxKrnl/EmuKrnl.cpp +++ b/src/CxbxKrnl/EmuKrnl.cpp @@ -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