lib/DOSDisk.rb in dsktool-0.1.2 vs lib/DOSDisk.rb in dsktool-0.1.3
- old
+ new
@@ -134,10 +134,10 @@
}
end
@files[filename]= case file_type_code
when 0x00 then TextFile.new(filename,locked,sector_count,contents)
- when 0x01 then IntegerBasicFile.new(filename,locked,sector_count,contents)
+ when 0x01 then SCAsmFile.can_be_scasm_file(contents)? SCAsmFile.new(filename,locked,sector_count,contents): IntegerBasicFile.new(filename,locked,sector_count,contents)
when 0x02 then AppleSoftFile.new(filename,locked,sector_count,contents)
when 0x04 then BinaryFile.new(filename,locked,sector_count,contents)
# when 0x08 then "S" #S type file
# when 0x10 then "R" #RELOCATABLE object module file
# when 0x20 then "a" #??