Create tcp server

This commit is contained in:
2024-12-30 21:55:30 -05:00
parent 1a54c2e6fc
commit 47a05968fb
9 changed files with 355 additions and 1 deletions
+9
View File
@@ -1,5 +1,6 @@
use std::{
collections::HashMap,
fmt::Display,
fs::{self, File},
io::{Read, Seek, SeekFrom, Write},
path::{Path, PathBuf},
@@ -45,6 +46,14 @@ impl SimId {
}
}
}
impl Display for SimId {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.write_str(match self {
Self::Player1 => "Player 1",
Self::Player2 => "Player 2",
})
}
}
struct Cart {
rom_path: PathBuf,