File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed
common/frontend/controllers Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ class GBAController < Controller
6161 ImGui .checkbox(" Attempt waitloop detection" , pointerof (@emu .cpu.attempt_waitloop_detection))
6262 ImGui .checkbox(" Cache waitloop results" , pointerof (@emu .cpu.cache_waitloop_results))
6363 progress = emu.cpu.count_cycles.to_f32 / 280896 _f32
64- ImGui .progress_bar(progress, ImGui ::ImVec2 .new(0 , 0 ));
64+ ImGui .progress_bar(progress, ImGui ::ImVec2 .new(0 , 0 ))
6565 end
6666 end
6767 end
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ module GBA
1414
1515 def initialize (@gba : GBA , @control : Reg ::SOUNDCNT_H )
1616 @timers = Slice [
17- - > { @control .dma_sound_a_timer },
18- - > { @control .dma_sound_b_timer },
17+ - > { @control .dma_sound_a_timer },
18+ - > { @control .dma_sound_b_timer },
1919 ]
2020 end
2121
Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ module GBA
3838 @src = Slice (UInt32 ).new 4 , 0
3939 @dst = Slice (UInt32 ).new 4 , 0
4040 @interrupt_flags = Slice [
41- - > { @gba .interrupts.reg_if.dma0 = true }, - > { @gba .interrupts.reg_if.dma1 = true },
42- - > { @gba .interrupts.reg_if.dma2 = true }, - > { @gba .interrupts.reg_if.dma3 = true }]
41+ - > { @gba .interrupts.reg_if.dma0 = true }, - > { @gba .interrupts.reg_if.dma1 = true },
42+ - > { @gba .interrupts.reg_if.dma2 = true }, - > { @gba .interrupts.reg_if.dma3 = true }]
4343 end
4444
4545 def [] (io_addr : UInt32 ) : UInt8
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ module GBA
1414 @cycle_enabled = Slice (UInt64 ).new 4 , 0 # cycle that the timer was enabled
1515 @events = Slice (Proc (Nil )).new 4 { |i | overflow i } # overflow closures for each timer
1616 @interrupt_flags = Slice [
17- - > { @gba .interrupts.reg_if.timer0 = true }, - > { @gba .interrupts.reg_if.timer1 = true },
18- - > { @gba .interrupts.reg_if.timer2 = true }, - > { @gba .interrupts.reg_if.timer3 = true }]
17+ - > { @gba .interrupts.reg_if.timer0 = true }, - > { @gba .interrupts.reg_if.timer1 = true },
18+ - > { @gba .interrupts.reg_if.timer2 = true }, - > { @gba .interrupts.reg_if.timer3 = true }]
1919 end
2020
2121 def overflow (num : Int ) : Proc (Nil )
22- - > {
22+ - > {
2323 @tm [num] = @tmd [num]
2424 @cycle_enabled [num] = @gba .scheduler.cycles
2525 if num < 3 && @tmcnt [num + 1 ].cascade && @tmcnt [num + 1 ].enable
You can’t perform that action at this time.
0 commit comments