Fix incorrect home dir on Decky

pull/4/head
NGnius (Graham) 1 year ago
parent c06a047a88
commit 91149f9dfc

@ -1,6 +1,6 @@
[package]
name = "usdpl-back"
version = "0.10.0"
version = "0.10.1"
edition = "2021"
license = "GPL-3.0-only"
repository = "https://github.com/NGnius/usdpl-rs"

@ -9,7 +9,12 @@ pub fn home() -> Option<PathBuf> {
#[cfg(all(feature = "crankshaft", not(any(feature = "decky"))))]
let result = None; // TODO
#[cfg(all(feature = "decky", not(any(feature = "crankshaft"))))]
let result = crate::api_decky::home().ok().map(|x| x.into());
let result = crate::api_decky::home().ok()
.map(|x| PathBuf::from(x)
.join("..")
.canonicalize()
.ok()
).flatten();
result
}

Loading…
Cancel
Save