This commit is contained in:
Philip Kristoffersen
2022-04-09 21:49:11 +02:00
committed by GitHub
parent 2a1523470f
commit a0c6fe0c8f
22 changed files with 2349 additions and 572 deletions
+13 -12
View File
@@ -1,8 +1,9 @@
mod egs;
mod gog;
mod heroic;
mod itch;
mod lutris;
mod legendary;
mod lutris;
mod origin;
mod platform;
mod settings;
@@ -10,23 +11,23 @@ mod steam;
mod steamgriddb;
mod sync;
mod uplay;
mod heroic;
#[cfg(feature = "ui")]
mod ui;
use std::error::Error;
#[cfg(not(feature = "ui"))]
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
#[cfg(feature = "ui")]
{
ui::run_ui().await
}
#[cfg(not(feature = "ui"))]
{
let settings = settings::Settings::new()?;
settings::Settings::write_config_if_missing();
sync::run_sync(&settings).await
}
let settings = settings::Settings::new()?;
settings::Settings::write_config_if_missing();
let usersinfo = sync::run_sync(&settings).unwrap();
sync::download_images(&settings,&usersinfo).await;
Ok(())
}
#[cfg(feature = "ui")]
fn main() -> Result<(), Box<dyn Error>> {
ui::run_ui()
}