fix: use Player.log instead of Player-prev (#18)

This commit is contained in:
mio 2023-05-06 10:11:38 +08:00
parent bbc52af184
commit 2fd8730cdd

@ -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) {}