mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
BREAKING: Migrate to Tauri v2
This commit is contained in:
@@ -35,7 +35,7 @@ pub struct Configuration {
|
||||
}
|
||||
|
||||
pub fn config_path(profile: String) -> PathBuf {
|
||||
let mut path = tauri::api::path::data_dir().unwrap();
|
||||
let mut path = dirs::data_dir().unwrap();
|
||||
path.push("cultivation");
|
||||
if profile.as_str() == "default" {
|
||||
path.push("configuration.json");
|
||||
|
||||
Reference in New Issue
Block a user