moves constants out of client handler

This commit is contained in:
2025-05-23 09:20:39 -04:00
parent c9c9cf67da
commit 74bf2e71e4
4 changed files with 27 additions and 19 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
use std::fs::File;
use std::io::{BufReader, Read};
use std::path::{Path, PathBuf};
use std::path::Path;
use crate::chip8::computer::Chip8Computer;
use crate::chip8::cpu_states::Chip8CpuStates;
use crate::chip8::cpu_states::Chip8CpuStates::WaitingForInstruction;
@@ -147,7 +147,6 @@ impl Chip8ComputerManager {
}
pub fn load_new_program_from_disk_to_system_memory(&mut self, file_to_load: &Path) {
println!("ComputerManager: Preparing to load {}", file_to_load.display());
// load the file into bytes...
let file = File::open(file_to_load).unwrap();
let mut reader = BufReader::new(file);