Skip to content

Commit

Permalink
Fixed Epic Parser
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Nov 4, 2021
1 parent 22491d0 commit a29395d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/parsers/epic.parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,11 @@ export class EpicParser implements GenericParser {
.then((files: string[])=>{
files.forEach((file)=>{
let item = JSON.parse(fs.readFileSync(file).toString())
if(!appTitles.includes(item.DisplayName)) {
let launchPath = path.join(item.InstallLocation,item.LaunchExecutable);
if(fs.existsSync(launchPath) && !appTitles.includes(item.DisplayName)) {
appTitles.push(item.DisplayName);
appNames.push(item.AppName);
appPaths.push(path.join(item.InstallLocation,item.LaunchExecutable))
appPaths.push(launchPath)
}
})
})
Expand Down

0 comments on commit a29395d

Please sign in to comment.