fix: handle error on getting steam path from windows registry
Some checks failed
Release / build (ubuntu-latest) (push) Has been cancelled
Release / build (windows-latest) (push) Has been cancelled

This commit is contained in:
Zamitto
2025-09-01 21:39:41 -03:00
parent fbb67af1f6
commit 8bc1c1c58c
5 changed files with 19 additions and 5 deletions

View File

@@ -279,13 +279,17 @@ export const findAchievementFiles = (game: Game) => {
};
const steamUserIds = await getSteamUsersIds();
const steamPath = await getSteamLocation();
const steamPath = await getSteamLocation().catch(() => null);
export const findAchievementFileInSteamPath = async (game: Game) => {
if (!steamUserIds.length) {
return [];
}
if (!steamPath) {
return [];
}
const userPreferences = await db.get<string, UserPreferences | null>(
levelKeys.userPreferences,
{