diff --git a/src/itch/itch_platform.rs b/src/itch/itch_platform.rs index 65e9c1d..0b5aea1 100644 --- a/src/itch/itch_platform.rs +++ b/src/itch/itch_platform.rs @@ -86,7 +86,7 @@ pub fn get_default_location() -> String { } #[cfg(target_os = "windows")] -fn get_default_location() -> String { +pub fn get_default_location() -> String { let key = "APPDATA"; let appdata = std::env::var(key).expect("Expected a APPDATA variable to be defined"); Path::new(&appdata).join("itch").to_str().unwrap().to_string() diff --git a/src/origin/origin_platform.rs b/src/origin/origin_platform.rs index b9cc95d..f64bb2b 100644 --- a/src/origin/origin_platform.rs +++ b/src/origin/origin_platform.rs @@ -108,7 +108,7 @@ pub fn get_default_location() -> String { } #[cfg(target_os = "windows")] -fn get_default_location() -> String { +pub fn get_default_location() -> String { let key = "PROGRAMDATA"; let program_data = std::env::var(key).expect("Expected a APPDATA variable to be defined"); Path::new(&program_data)