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.5 by cebix, 2000-04-10T18:52:19Z vs.
Revision 1.6 by cebix, 2000-07-14T21:29:07Z

# Line 151 | Line 151 | static DriveInfo *first_drive_info;
151   // Icon address (Mac address space, set by PatchROM())
152   uint32 CDROMIconAddr;
153  
154 // Number of ticks between checks for disk insertion
155 const int driver_delay = 120;
156
154   // Flag: Control(accRun) has been called, interrupt routine is now active
155   static bool acc_run_called = false;
156  
# Line 964 | Line 961 | int16 CDROMStatus(uint32 pb, uint32 dce)
961  
962  
963   /*
964 < *  Driver interrupt routine - check for volumes to be mounted
964 > *  Driver interrupt routine (1Hz) - check for volumes to be mounted
965   */
966  
967   void CDROMInterrupt(void)
968   {
972        static int tick_count = 0;
969          if (!acc_run_called)
970                  return;
971  
972 <        tick_count++;
977 <        if (tick_count > driver_delay) {
978 <                tick_count = 0;
979 <                mount_mountable_volumes();
980 <        }
972 >        mount_mountable_volumes();
973   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines