fix: handle case where steam is not installed

This commit is contained in:
Zamitto
2025-09-02 05:59:15 -03:00
parent 8bc1c1c58c
commit 957a6b512e

View File

@@ -88,6 +88,10 @@ export const getSteamUsersIds = async () => {
return [];
}
if (!fs.existsSync(userDataPath)) {
return [];
}
const userIds = fs.readdirSync(path.join(userDataPath, "userdata"), {
withFileTypes: true,
});