mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-23 05:40:21 +08:00
fix: use Player.log instead of Player-prev (#18)
This commit is contained in:
parent
bbc52af184
commit
2fd8730cdd
@ -83,7 +83,7 @@ const detectGameLocale = async (userPath) => {
|
|||||||
const arr = ['/miHoYo/崩坏:星穹铁道/', '/Cognosphere/Star Rail/']
|
const arr = ['/miHoYo/崩坏:星穹铁道/', '/Cognosphere/Star Rail/']
|
||||||
arr.forEach(str => {
|
arr.forEach(str => {
|
||||||
try {
|
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)
|
fs.accessSync(pathname, fs.constants.F_OK)
|
||||||
list.push(pathname)
|
list.push(pathname)
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user