ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/cdrom.cpp
(Generate patch)

Comparing BasiliskII/src/cdrom.cpp (file contents):
Revision 1.22 by gbeauche, 2008-01-01T09:40:31Z vs.
Revision 1.23 by asvitkine, 2008-06-28T18:36:18Z

# Line 910 | Line 910 | int16 CDROMStatus(uint32 pb, uint32 dce)
910                          }
911                          return noErr;
912                  }
913 +
914 +                case 97: {      // WhoIsThere
915 +                        uint8 drives_present = 0;
916 +                        drive_vec::iterator info, end = drives.end();
917 +                        for (info = drives.begin(); info != end; ++info) {
918 +                                if (info->num <= 6)
919 +                                        drives_present |= (1 << info->num);
920 +                        }
921 +                        WriteMacInt8(pb + csParam + 1, drives_present);
922 +                        return noErr;
923 +                }
924          }
925  
926          // Drive valid?
# Line 961 | Line 972 | int16 CDROMStatus(uint32 pb, uint32 dce)
972  
973                  case 121:               // Get CD features
974                          WriteMacInt16(pb + csParam, 0x0200);    // 300 KB/s
975 <                        WriteMacInt16(pb + csParam, 0x0300);    // SCSI-2, stereo
975 >                        WriteMacInt16(pb + csParam + 2, 0x0c00);        // SCSI-2, stereo
976                          return noErr;
977  
978                  default:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines