mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Make get_default_location pub in windows
This commit is contained in:
@@ -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