mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
install_location -> get_install_location
This commit is contained in:
parent
4088bb47f0
commit
4138bb7ee1
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue