Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (23 sloc) 544 Bytes
#!/usr/bin/env ruby
require 'rubygems'
require 'bundler'
require 'readline'
Bundler.require :default
Dir.glob(File.join(File.dirname(__FILE__), '{cpu,lib}', '**', '*.rb')).each do |f|
require f
end
$options = Antiquitas::Options.parse(ARGV)
# here, the only thing left in ARGV should be the name of the rom
rom = ARGV.first
if $options.debug
if $options.cpu
cpu = Kernel.const_get("Cpu#{$options.cpu}")
end
loop do
line = Readline::readline('> ')
Readline::HISTORY.push(line)
puts line
end
else
puts 'cool'
end