mirror of
https://github.com/mattrberry/crab.git
synced 2025-02-09 08:46:02 +01:00
24 lines
298 B
Crystal
24 lines
298 B
Crystal
require "colorize"
|
|
|
|
require "bitfield"
|
|
require "sdl"
|
|
|
|
require "./crab/gba"
|
|
|
|
Colorize.on_tty_only!
|
|
|
|
module Crab
|
|
VERSION = "0.1.0"
|
|
|
|
extend self
|
|
|
|
def run
|
|
gba = GBA.new ARGV[0], ARGV[1]
|
|
gba.post_init
|
|
gba.run
|
|
end
|
|
end
|
|
|
|
unless PROGRAM_NAME.includes?("crystal-run-spec")
|
|
Crab.run
|
|
end
|