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.9 by cebix, 2000-07-25T15:19:39Z vs.
Revision 1.10 by cebix, 2000-10-11T17:40:07Z

# Line 917 | Line 917 | int16 CDROMStatus(uint32 pb, uint32 dce)
917  
918          // Drive-specific codes
919          switch (code) {
920 +                case 6:                 // Return format list
921 +                        if (ReadMacInt16(pb + csParam) > 0) {
922 +                                uint32 adr = ReadMacInt32(pb + csParam + 2);
923 +                                WriteMacInt16(pb + csParam, 1);                                         // 1 format
924 +                                WriteMacInt32(adr, SysGetFileSize(info->fh) / 512);     // Number of blocks
925 +                                WriteMacInt32(adr + 4, 0);                                                      // heads/track/sectors
926 +                                return noErr;
927 +                        } else
928 +                                return paramErr;
929 +
930                  case 8:                 // DriveStatus
931                          Mac2Mac_memcpy(pb + csParam, info->status, 22);
932                          return noErr;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines