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.11 by cebix, 2001-02-02T20:52:56Z

# Line 1 | Line 1
1   /*
2   *  cdrom.cpp - CD-ROM driver
3   *
4 < *  Basilisk II (C) 1997-2000 Christian Bauer
4 > *  Basilisk II (C) 1997-2001 Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# 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