use std::env for windows

This commit is contained in:
MeexReay 2025-04-19 15:32:09 +03:00
parent 8f539713f6
commit ba54300e6c

View File

@ -58,6 +58,7 @@ pub fn get_config_path() -> PathBuf {
#[cfg(target_os = "windows")]
if let Some(dir) = {
use std::env;
env::var("APPDATA")
.ok()
.and_then(|o| Some(PathBuf::from_str(&o).ok()?.join("bRAC")))