From 1bacb82ac7d0a23bc9e37e07656bf8608a429b97 Mon Sep 17 00:00:00 2001 From: Jozen Date: Thu, 12 Sep 2019 16:19:09 +0800 Subject: [PATCH] Fix some Uplay games not being found --- src/js/importers/Uplay.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/importers/Uplay.js b/src/js/importers/Uplay.js index 78ce656..ee8f2cc 100644 --- a/src/js/importers/Uplay.js +++ b/src/js/importers/Uplay.js @@ -229,8 +229,8 @@ class Uplay { this.resolveConfigPath(exe.working_directory).then((workingDir) => { if (workingDir) { // check if exe is actually there - if (fs.existsSync(path.join(workingDir, exePath))) { - resolve(path.join(workingDir, exePath)); + if (fs.existsSync(path.join(workingDir, append, exePath))) { + resolve(path.join(workingDir, append, exePath)); } else { resolve(false); }