mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 23:26:19 +00:00
install_location -> get_install_location
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user