fix(dtmm): Fix config path on Windows
This commit is contained in:
parent
e46b041e09
commit
55c6ebf2e9
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ pub(crate) struct Config {
|
||||||
pub mod_order: Vec<LoadOrderEntry>,
|
pub mod_order: Vec<LoadOrderEntry>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(arget_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
pub fn get_default_config_path() -> PathBuf {
|
pub fn get_default_config_path() -> PathBuf {
|
||||||
let config_dir = std::env::var("XDG_CONFIG_DIR").unwrap_or_else(|_| {
|
let config_dir = std::env::var("XDG_CONFIG_DIR").unwrap_or_else(|_| {
|
||||||
let home = std::env::var("HOME").unwrap_or_else(|_| {
|
let home = std::env::var("HOME").unwrap_or_else(|_| {
|
||||||
|
@ -79,7 +79,7 @@ pub fn get_default_config_path() -> PathBuf {
|
||||||
PathBuf::from(config_dir).join("dtmm").join("dtmm.cfg")
|
PathBuf::from(config_dir).join("dtmm").join("dtmm.cfg")
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(not(arget_os = "windows"))]
|
#[cfg(not(target_os = "windows"))]
|
||||||
pub fn get_default_data_dir() -> PathBuf {
|
pub fn get_default_data_dir() -> PathBuf {
|
||||||
let data_dir = std::env::var("XDG_DATA_DIR").unwrap_or_else(|_| {
|
let data_dir = std::env::var("XDG_DATA_DIR").unwrap_or_else(|_| {
|
||||||
let home = std::env::var("HOME").unwrap_or_else(|_| {
|
let home = std::env::var("HOME").unwrap_or_else(|_| {
|
||||||
|
|
Loading…
Add table
Reference in a new issue