install_location -> get_install_location

This commit is contained in:
Lucien Greathouse
2018-06-24 23:55:13 -07:00
parent 4088bb47f0
commit 4138bb7ee1

View File

@@ -7,7 +7,7 @@ use std::env;
static ROJO_PLUGIN_ID: &'static str = "1211549683"; static ROJO_PLUGIN_ID: &'static str = "1211549683";
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
pub fn install_location() -> Option<PathBuf> { pub fn get_install_location() -> Option<PathBuf> {
let local_app_data = env::var("LocalAppData").ok()?; let local_app_data = env::var("LocalAppData").ok()?;
let mut location = PathBuf::from(local_app_data); let mut location = PathBuf::from(local_app_data);
@@ -17,12 +17,12 @@ pub fn install_location() -> Option<PathBuf> {
} }
#[cfg(target_os = "macos")] #[cfg(target_os = "macos")]
pub fn install_location() -> Option<PathBuf> { pub fn get_install_location() -> Option<PathBuf> {
unimplemented!(); unimplemented!();
} }
#[cfg(not(any(target_os = "windows", target_os = "macos")))] #[cfg(not(any(target_os = "windows", target_os = "macos")))]
pub fn install_location() -> Option<PathBuf> { pub fn get_install_location() -> Option<PathBuf> {
// Roblox Studio doesn't install on any other platforms! // Roblox Studio doesn't install on any other platforms!
None None
} }