Skip to content

Commit a7b3811

Browse files
committed
crystal tool format with latest formatter
1 parent eaa409b commit a7b3811

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/crab/common/frontend/controllers/gba_controller.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/crab/gba/apu/dma_channels.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/crab/gba/dma.cr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

src/crab/gba/timer.cr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)