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

Comparing BasiliskII/src/sony.cpp (file contents):
Revision 1.13 by cebix, 2002-01-15T14:58:32Z vs.
Revision 1.14 by cebix, 2002-02-23T17:54:23Z

# Line 195 | Line 195 | bool SonyMountVolume(void *fh)
195          while (info != end && info->fh != fh)
196                  ++info;
197          if (info != end) {
198 +                D(bug("Looking for disk in drive %d\n", info->num));
199                  if (SysIsDiskInserted(info->fh)) {
200                          info->read_only = SysIsReadOnly(info->fh);
201                          WriteMacInt8(info->status + dsDiskInPlace, 1);  // Inserted removable disk
202                          WriteMacInt8(info->status + dsWriteProt, info->read_only ? 0xff : 0);
203 +                        D(bug(" disk inserted, mounting\n"));
204                          info->to_be_mounted = true;
205                  }
206                  return true;
# Line 219 | Line 221 | static void mount_mountable_volumes(void
221  
222   #if DISK_INSERT_CHECK
223                  // Disk in drive?
224 <                if (!ReadMacInt8(info->status + dsDiskInPlace)) {
224 >                if (ReadMacInt8(info->status + dsDiskInPlace) == 0) {
225  
226                          // No, check if disk was inserted
227                          if (SysIsDiskInserted(info->fh))
# Line 246 | Line 248 | static void mount_mountable_volumes(void
248  
249   static int16 set_dsk_err(int16 err)
250   {
251 +        D(bug("set_dsk_err(%d)\n", err));
252          WriteMacInt16(0x142, err);
253          return err;
254   }
# Line 307 | Line 310 | int16 SonyOpen(uint32 pb, uint32 dce)
310                          if (SysIsDiskInserted(info->fh)) {
311                                  WriteMacInt8(info->status + dsDiskInPlace, 1);  // Inserted removable disk
312                                  WriteMacInt8(info->status + dsWriteProt, info->read_only ? 0xff : 0);
313 +                                D(bug(" disk inserted, flagging for mount\n"));
314                                  info->to_be_mounted = true;
315                          }
316  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines