[improve] set game dir on client -> updates Play/Install button based on games existing

This commit is contained in:
2024-11-14 19:41:55 +01:00
parent c00b7dbe9c
commit 942eb8003e
12 changed files with 873 additions and 53 deletions

View File

@ -5,6 +5,7 @@ use tracing::error;
#[derive(Debug, Serialize, Deserialize)]
pub enum Request {
Ping,
ListGames,
GetGame { id: String },
Invalid(Bytes, String),
@ -12,6 +13,7 @@ pub enum Request {
#[derive(Clone, Debug, Serialize, Deserialize)]
pub enum Response {
Pong,
Games(Vec<Game>),
Game(Game),
GameNotFound(String),