Sha256: 1e377aefe93420387076bf9c1c7da4d2b87ec5fe10a241bcafd2df0dc6d507a1

Contents?: true

Size: 1.64 KB

Versions: 10

Compression:

Stored size: 1.64 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 {[".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
  
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

10 entries across 10 versions & 1 rubygems

Version Path
ripxplore-0.4.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.0.2 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.0.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.5.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.5.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.7.0 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.5.2 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.7.1 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.7.2 lib/native_file_types/c64/C64PrgText.rb
ripxplore-0.8.0 lib/native_file_types/c64/C64PrgText.rb