aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/find.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/find.js b/src/modules/find.js
index 25c1b38..8ed565e 100644
--- a/src/modules/find.js
+++ b/src/modules/find.js
@@ -46,6 +46,12 @@ module.exports = {
let protonpath = false;
for (let i = 0; i < libraries.length; i++) {
+ if (! fs.existsSync(libraries[i])
+ || fs.statSync(libraries[i]).isDirectory()) {
+
+ continue;
+ }
+
let files = fs.readdirSync(libraries[i]);
for (let ii = 0; ii < files.length; ii++) {
if (files[ii].match(/^Proton [0-9]+\.[0-9]+/)) {