moves constants out of client handler
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user