Profile mod management

This commit is contained in:
Jai A
2023-03-29 15:34:46 -07:00
parent 8512b45e2b
commit 59b835d374
10 changed files with 1322 additions and 841 deletions

View File

@@ -122,6 +122,12 @@ impl DirectoryInfo {
self.config_dir.join("settings.json")
}
/// Get the cache directory for Theseus
#[inline]
pub fn caches_dir(&self) -> PathBuf {
self.config_dir.join("caches")
}
/// Get path from environment variable
#[inline]
fn env_path(name: &str) -> Option<PathBuf> {