Sha256: 0ea11b4b4f640e2ac907fe52fe93802ca55d2da2620bede7024daa8c14655047

Contents?: true

Size: 1.77 KB

Versions: 9

Compression:

Stored size: 1.77 KB

Contents

$:.unshift(File.dirname(__FILE__)) unless
	$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require 'NativeFileType'

require 'CbmFile'

class C64PrgText<C64Prg
    
is_valid_file_if  lambda {!(filename.include?("\000")) && ["t.",".s",".logo"].include?(File.extname(filename))}

  # if we think it's a text file, don't bother showing a disassembly
  undef_method :to_disassembly
  def to_text
    C64.s_to_ascii(data_without_header)
  end


  def to_screendump
    file_system_image.host_system.to_screendump(data_without_header)
  end
end

  
# == Author
# Jonno Downes (jonno@jamtronix.com)
#
# == Copyright
# Copyright (c) 2008 Jonno Downes (jonno@jamtronix.com)
#
#Permission is hereby granted, free of charge, to any person obtaining
#a copy of this software and associated documentation files (the
#"Software"), to deal in the Software without restriction, including
#without limitation the rights to use, copy, modify, merge, publish,
#distribute, sublicense, and/or sell copies of the Software, and to
#permit persons to whom the Software is furnished to do so, subject to
#the following conditions:

# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ripxplore-0.17.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.17.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.16.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.15.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.14.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.14.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.13.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.12.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.11.0 lib/native_file_types/c64/C64PrgText.rb