Module: Rubygb
- Defined in:
- lib/rubygb.rb,
lib/rubygb/cli.rb,
lib/rubygb/rubygb.rb,
lib/rubygb/version.rb,
lib/rubygb/template/template.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.2.0".freeze
Class Method Summary collapse
Class Method Details
.build(filename, options = {}) ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/rubygb/rubygb.rb', line 2 def self.build filename, ={} unless File.exists? filename raise "Fatal: can't find #{filename}" end base = File.basename(filename, ".*") exe_path = File.(File.join(File.dirname(__FILE__),"..","rgbds")) puts `#{exe_path}/rgbasm -v -o#{base}.obj #{filename}` puts `#{exe_path}/rgblink -m#{base}.map -n#{base}.sym -o#{base}.gb #{base}.obj` puts `#{exe_path}/rgbfix -p0 -v #{base}.gb` unless [:no_fix] end |