mirror of
https://github.com/djibux/BoilR.git
synced 2026-12-01 01:41:59 +01:00
Make get_default_location pub in windows
This commit is contained in:
1 parent
6e9ea68b3e
commit
97ff798c9d
2 files changed
+2
-2
No files matched your search
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user