summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorxXJSONDeruloXx <danielhimebauch@gmail.com>2025-09-26 12:16:22 -0400
committerxXJSONDeruloXx <danielhimebauch@gmail.com>2025-09-26 12:16:22 -0400
commit7d2322e637faae5ccfab58c54f7a13e6a5f7ea88 (patch)
treee92c7e73d497bf66faff14aed29b6372ba0c53ce /main.py
parentcbed25162a1058e67180aafb8fbd424bf2573e95 (diff)
downloadDecky-Framegen-7d2322e637faae5ccfab58c54f7a13e6a5f7ea88.tar.gz
Decky-Framegen-7d2322e637faae5ccfab58c54f7a13e6a5f7ea88.zip
feat: first arg steam path start, second mirror first
Diffstat (limited to 'main.py')
-rw-r--r--main.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/main.py b/main.py
index 76a7b22..a22acca 100644
--- a/main.py
+++ b/main.py
@@ -429,5 +429,18 @@ class Plugin:
decky.logger.error(str(e))
return {"status": "error", "message": str(e)}
+ async def get_path_defaults(self) -> dict:
+ try:
+ home_path = Path(decky.HOME)
+ except TypeError:
+ home_path = Path(str(decky.HOME))
+
+ steam_common = home_path / ".local" / "share" / "Steam" / "steamapps" / "common"
+
+ return {
+ "home": str(home_path),
+ "steam_common": str(steam_common),
+ }
+
async def log_error(self, error: str) -> None:
decky.logger.error(f"FRONTEND: {error}")