Skip to content

Commit

Permalink
fix: the manually specified installation path may not match (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
biuuu committed May 2, 2023
1 parent 8d45af5 commit f954705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/getData.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const readLog = async () => {
}
const promises = logPaths.map(async logpath => {
const logText = await fs.readFile(logpath, 'utf8')
const gamePathMch = logText.match(/\w:\/.*?(Star\sRail\/Games?\/StarRail_Data)/)
const gamePathMch = logText.match(/\w:\/.*?\/StarRail_Data\//)
if (gamePathMch) {
const cacheText = await fs.readFile(path.join(gamePathMch[0], '/webCaches/Cache/Cache_Data/data_2'), 'utf8')
const urlMch = cacheText.match(/https.+?&auth_appid=webview_gacha&.+?authkey=.+?&game_biz=hkrpg_.+?&plat_type=pc/g)
Expand Down

0 comments on commit f954705

Please sign in to comment.