mirror of
https://github.com/MeexReay/bRAC.git
synced 2025-05-06 13:38:04 +03:00
use std::env for windows
This commit is contained in:
parent
8f539713f6
commit
ba54300e6c
@ -58,6 +58,7 @@ pub fn get_config_path() -> PathBuf {
|
|||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
if let Some(dir) = {
|
if let Some(dir) = {
|
||||||
|
use std::env;
|
||||||
env::var("APPDATA")
|
env::var("APPDATA")
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|o| Some(PathBuf::from_str(&o).ok()?.join("bRAC")))
|
.and_then(|o| Some(PathBuf::from_str(&o).ok()?.join("bRAC")))
|
||||||
|
Loading…
Reference in New Issue
Block a user