amaterasu 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98aed6574c6f121b4d6e26758203feed8b7d1351faa31b26294ce305991f527a
4
- data.tar.gz: 3ffd98a744ecd511eb48786fc2550baf4758fd25b297837ba5445671eceea4dc
3
+ metadata.gz: a7ccc58986afd720eb2fb325ece0311c5817fe21eb33aaa6589262fbbb6dc924
4
+ data.tar.gz: d91149e81b834d7cd4ad455417b0a693891971bff7720c108b27c976576ba3ea
5
5
  SHA512:
6
- metadata.gz: db9624cbe9895a451d119a020fb3b586d7497447d360d03800893e8f4f2164afe168451948b156196cc3b4de9fab55d884026c5f7b2abf080832514ed1450270
7
- data.tar.gz: 7167951ce163ffc663c30086cc9215cabb1b9310850833ffc58c0c81996bbcfa7487305fdfcab4ef53824b0a33fe473009b9462e26b1a6660f3c08418d8791c8
6
+ metadata.gz: 0673121ddb03834e9f080ce6454b64206da223577e695547644eef4056ca270cef9a055035b6034d74daeffaf9389d6c1be1f60b51d30a106a3796b1803eba36
7
+ data.tar.gz: b10be6dc013530c5e97b31ffc5b65352e24311d4104fbf2d602c794aa71761588af971d8844babf1362fdf0f2c38d143a129e777558744c36348c9a1de053133
data/lib/amaterasu/cli.rb CHANGED
@@ -13,7 +13,7 @@ module Amaterasu
13
13
  profiling: nil,
14
14
  steps: nil,
15
15
  trace: nil,
16
- video: nil,
16
+ renderer: nil,
17
17
  rom_path: nil
18
18
  }
19
19
 
@@ -37,6 +37,10 @@ module Amaterasu
37
37
  options[:profiling] = mode.to_sym
38
38
  end
39
39
 
40
+ parser.on('-r', '--renderer=RENDERER', 'Define the renderer backend') do |renderer|
41
+ options[:renderer] = renderer
42
+ end
43
+
40
44
  parser.on('-s', '--steps=n', Integer, 'Amount of CPU steps to run') do |n|
41
45
  options[:steps] = n
42
46
  end
@@ -45,8 +49,9 @@ module Amaterasu
45
49
  options[:trace] = component
46
50
  end
47
51
 
48
- parser.on('-v', '--video=VIDEO', 'Define the video backend') do |video|
49
- options[:video] = video
52
+ parser.on('-v', '--version', 'Displays the current emulator version') do |component|
53
+ puts Amaterasu::VERSION
54
+ exit(0)
50
55
  end
51
56
  end
52
57
 
@@ -11,11 +11,11 @@ module Amaterasu
11
11
  profiling:,
12
12
  steps:,
13
13
  trace:,
14
- video:,
14
+ renderer:,
15
15
  rom_path:
16
16
  )
17
17
  @audio = audio
18
- @video = video
18
+ @renderer = renderer
19
19
  @stop_cycles = cycles
20
20
  @stop_steps = steps
21
21
  @profiling_mode = profiling
@@ -75,7 +75,7 @@ module Amaterasu
75
75
 
76
76
  def load_components
77
77
  @bus = GameBoy::Bus.new
78
- @sdl2 = HAL::SDL2.new unless @video == 'null'
78
+ @sdl2 = HAL::SDL2.new unless @renderer == 'null'
79
79
  @apu = GameBoy::Apu.new
80
80
  @dma = GameBoy::Dma.new(@bus, trace_dma: @trace == 'dma')
81
81
  @interrupts = GameBoy::Interrupts.new
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Amaterasu
4
- # Current Gem version
5
- VERSION = '0.6.1'
4
+ # Current Gem version.
5
+ VERSION = '0.6.2'
6
6
  end
data/sig/akane/cli.rbs CHANGED
@@ -7,7 +7,7 @@ module Amaterasu
7
7
  profile: Symbol?,
8
8
  steps: Integer?,
9
9
  trace: Array[String]?,
10
- video: String?,
10
+ renderer: String?,
11
11
  rom_path: String
12
12
  }
13
13
 
@@ -9,7 +9,7 @@ module Amaterasu
9
9
  profiling: String,
10
10
  steps: Integer,
11
11
  trace: String,
12
- video: String,
12
+ renderer: String,
13
13
  rom_path: String
14
14
  ) -> void
15
15
  def start: (CLI::emulator_options options) -> void
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amaterasu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fernando Eufrásio