Comment out roblox_studio mechanisms for now, start using env_logger

This commit is contained in:
Lucien Greathouse
2018-09-21 18:00:41 -07:00
parent a69cbf45df
commit dbad0a16c4
9 changed files with 77 additions and 16 deletions

View File

@@ -4,7 +4,6 @@
#![allow(dead_code)]
use std::path::PathBuf;
use std::env;
#[cfg(all(not(debug_assertions), not(feature = "bundle-plugin")))]
compile_error!("`bundle-plugin` feature must be set for release builds.");
@@ -14,6 +13,8 @@ static PLUGIN_RBXM: &'static [u8] = include_bytes!("../target/plugin.rbxmx");
#[cfg(target_os = "windows")]
pub fn get_install_location() -> Option<PathBuf> {
use std::env;
let local_app_data = env::var("LocalAppData").ok()?;
let mut location = PathBuf::from(local_app_data);
@@ -46,7 +47,7 @@ pub fn install_bundled_plugin() -> Option<()> {
use std::fs::File;
use std::io::Write;
println!("Installing plugin...");
info!("Installing plugin...");
let mut file = File::create(get_plugin_location()?).ok()?;
file.write_all(PLUGIN_RBXM).ok()?;
@@ -56,7 +57,7 @@ pub fn install_bundled_plugin() -> Option<()> {
#[cfg(not(feature = "bundle-plugin"))]
pub fn install_bundled_plugin() -> Option<()> {
println!("Skipping plugin installation, bundle-plugin not set.");
info!("Skipping plugin installation, bundle-plugin not set.");
Some(())
}