summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 1b54d5f..a9a937e 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -10,6 +10,7 @@ use crate::{devdir, error::MLE};
10#[derive(Debug, Clone, Serialize, Deserialize)] 10#[derive(Debug, Clone, Serialize, Deserialize)]
11pub struct Cfg { 11pub struct Cfg {
12 pub data: String, 12 pub data: String,
13 pub cache: String,
13 pub apis: Apis, 14 pub apis: Apis,
14} 15}
15 16
@@ -28,7 +29,8 @@ impl Cfg {
28 if err.kind() == std::io::ErrorKind::NotFound { 29 if err.kind() == std::io::ErrorKind::NotFound {
29 println!("No config file found, creating one"); 30 println!("No config file found, creating one");
30 let default_cfg = Cfg { 31 let default_cfg = Cfg {
31 data: String::from("./"), 32 data: String::from("~/.cache/modlist/"),
33 cache: String::from("~/.cache/modlist/cache"),
32 apis: Apis { 34 apis: Apis {
33 modrinth: String::from("https://api.modrinth.com/v2/"), 35 modrinth: String::from("https://api.modrinth.com/v2/"),
34 }, 36 },