Make get_default_location pub in windows

This commit is contained in:
Philip
2021-10-02 15:28:57 +02:00
parent 6e9ea68b3e
commit 97ff798c9d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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()
+1 -1
View File
@@ -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)