Compare commits
2 Commits
89e3565806
...
1dd25f682b
Author | SHA1 | Date | |
---|---|---|---|
1dd25f682b | |||
3610eb77a6 |
@ -319,6 +319,17 @@ async fn main() -> eyre::Result<()> {
|
|||||||
|
|
||||||
let eti_games = eti::get_games(&cli.db).await?;
|
let eti_games = eti::get_games(&cli.db).await?;
|
||||||
let mut games: Vec<Game> = eti_games.into_iter().map(eti_game_to_game).collect();
|
let mut games: Vec<Game> = eti_games.into_iter().map(eti_game_to_game).collect();
|
||||||
|
|
||||||
|
// Filter games based on existing folders
|
||||||
|
games.retain(|game| {
|
||||||
|
let game_folder = cli.folder.join(&game.id);
|
||||||
|
let exists = game_folder.exists() && game_folder.is_dir();
|
||||||
|
if !exists {
|
||||||
|
tracing::debug!("Skipping game {}: folder not found", game.id);
|
||||||
|
}
|
||||||
|
exists
|
||||||
|
});
|
||||||
|
|
||||||
let thumbnails = Thumbnails::new(cli.thumbnails);
|
let thumbnails = Thumbnails::new(cli.thumbnails);
|
||||||
|
|
||||||
// add thumbnails to games
|
// add thumbnails to games
|
||||||
|
@ -226,7 +226,7 @@ const App = () => {
|
|||||||
<div className="item-name">{item.name}</div>
|
<div className="item-name">{item.name}</div>
|
||||||
<div className="description">
|
<div className="description">
|
||||||
<span className="desc-text">{item.description.slice(0, 10)}</span>
|
<span className="desc-text">{item.description.slice(0, 10)}</span>
|
||||||
<span className="size-text">{item.size.toString()}</span>
|
<span className="size-text">{(item.size / 1024 / 1024 / 1024).toFixed(1)} GB</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="play-button"
|
<div className="play-button"
|
||||||
onClick={() => item.installed
|
onClick={() => item.installed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user