[client][server] file transfer working, ui not ready for it
This commit is contained in:
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user