mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-22 21:55:15 +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";
|
||||
|
||||
#[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 mut location = PathBuf::from(local_app_data);
|
||||
|
||||
@@ -17,12 +17,12 @@ pub fn install_location() -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
pub fn install_location() -> Option<PathBuf> {
|
||||
pub fn get_install_location() -> Option<PathBuf> {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[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!
|
||||
None
|
||||
}
|
||||
Reference in New Issue
Block a user