moves constants out of client handler
This commit is contained in:
1 parent
c9c9cf67da
commit
74bf2e71e4
4 files changed
+27
-19
No files matched your search
@@ -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