mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +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";
|
||||
|
||||
#[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
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue