mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Create files for configuration
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
mod get_manifests;
|
||||
mod manifest_item;
|
||||
mod settings;
|
||||
pub use manifest_item::*;
|
||||
pub use get_manifests::get_egs_manifests;
|
||||
@@ -0,0 +1,29 @@
|
||||
use serde::Deserialize;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct EpicGamesLauncher {
|
||||
enabled: bool,
|
||||
location: Option<String>,
|
||||
}
|
||||
|
||||
impl Default for EpicGamesLauncher {
|
||||
fn default() -> Self {
|
||||
|
||||
// On windows
|
||||
// Even if no path is given, we can try to guess, so lets enable by default
|
||||
#[cfg(target_os = "windows")]
|
||||
let enabled = true;
|
||||
|
||||
|
||||
// On linux
|
||||
// We can notguess, so lets not enable by default
|
||||
#[cfg(target_os = "linux")]
|
||||
let enabled = false;
|
||||
|
||||
EpicGamesLauncher {
|
||||
enabled,
|
||||
location: None,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user