From 486d22699a752435788ac4a1abf2b58b028df304 Mon Sep 17 00:00:00 2001 From: Jonathan Balls Date: Wed, 4 Sep 2024 17:40:20 +0100 Subject: [PATCH] move roms into roms directory --- pokemon-gold.gbc => roms/pokemon-gold.gbc | Bin tetris.gb => roms/tetris.gb | Bin src/main.rs | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename pokemon-gold.gbc => roms/pokemon-gold.gbc (100%) rename tetris.gb => roms/tetris.gb (100%) diff --git a/pokemon-gold.gbc b/roms/pokemon-gold.gbc similarity index 100% rename from pokemon-gold.gbc rename to roms/pokemon-gold.gbc diff --git a/tetris.gb b/roms/tetris.gb similarity index 100% rename from tetris.gb rename to roms/tetris.gb diff --git a/src/main.rs b/src/main.rs index ea46639..87abc8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ fn main() { let (tx_key, rx_key) = mpsc::channel::<(bool, Key)>(); let emulator_loop = thread::spawn(move || { - let rom_data = read_file_to_bytes("tetris.gb").unwrap(); + let rom_data = read_file_to_bytes("roms/tetris.gb").unwrap(); let mut gameboy = GameBoy::new(rom_data, tx.clone(), rx_key); gameboy.start() });