From 2fd8730cddd038aac5f4b2d00f9e5d0fdf2f7261 Mon Sep 17 00:00:00 2001 From: mio <10892119+biuuu@users.noreply.github.com> Date: Sat, 6 May 2023 10:11:38 +0800 Subject: [PATCH] fix: use Player.log instead of Player-prev (#18) --- src/main/getData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/getData.js b/src/main/getData.js index bd3ec1c..5337c6a 100644 --- a/src/main/getData.js +++ b/src/main/getData.js @@ -83,7 +83,7 @@ const detectGameLocale = async (userPath) => { const arr = ['/miHoYo/崩坏:星穹铁道/', '/Cognosphere/Star Rail/'] arr.forEach(str => { try { - const pathname = path.join(userPath, '/AppData/LocalLow/', str, 'Player-prev.log') + const pathname = path.join(userPath, '/AppData/LocalLow/', str, 'Player.log') fs.accessSync(pathname, fs.constants.F_OK) list.push(pathname) } catch (e) {}