[client][server] file transfer working, ui not ready for it

This commit is contained in:
2024-11-14 23:26:31 +01:00
parent 942eb8003e
commit 2b64d1e4ba
9 changed files with 334 additions and 39 deletions

View File

@ -133,3 +133,21 @@ impl Default for GameDB {
Self::empty()
}
}
#[derive(Clone, Serialize, Deserialize)]
pub struct GameFileDescription {
pub game_id: String,
pub relative_path: String,
pub is_dir: bool,
}
impl fmt::Debug for GameFileDescription {
#[allow(clippy::cast_precision_loss)]
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(
f,
"game:{} path:{} dir:{}",
self.game_id, self.relative_path, self.is_dir
)
}
}