Skip to content

Commit

Permalink
Fix non-inclusive loop
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnsAnns committed Jun 14, 2024
1 parent e6bf57f commit 5d00d51
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ use crate::cpu::registers::{Register16Bit, Register8Bit};
const TIME_PER_FRAME: f32 = 1000.0 / 30.0;

const DUMP_GAMEBOY_DOCTOR_LOG: bool = true;
#[cfg(target_os = "linux")]
const WINDOWS: bool = false;
#[cfg(target_os = "windows")]
const WINDOWS: bool = true;

#[macroquad::main("GB Emulator")]
Expand Down Expand Up @@ -126,7 +129,7 @@ async fn main() {
cpu.poll_inputs();
cpu.blarg_print();

for _ in 0..cpu_cycles_taken {
for _ in 0..=cpu_cycles_taken {
ppu.step(&mut cpu, &mut final_image, &PALETTE);

// Redraw UI at 30 frames per second
Expand Down

0 comments on commit 5d00d51

Please sign in to comment.