lib/image_formats/D64.rb in ripxplore-0.8.0 vs lib/image_formats/D64.rb in ripxplore-0.11.0
- old
+ new
@@ -51,9 +51,19 @@
def end_track
return track_count
end
+#what track does the directory start on?
+def dir_track_no
+ 18
+end
+
+#what sector does the directory start on?
+def dir_sector_no
+ 1
+end
+
def get_sector(track_no,sector_no)
return nil if @@sectors_in_track[track_no].nil?
return nil unless sector_no.between?(0,@@sectors_in_track[track_no]-1)
start_byte=@@offset_of_track[track_no]+(D64_BYTES_PER_SECTOR*(sector_no))
file_bytes[start_byte,D64_BYTES_PER_SECTOR]