Skip to content

Commit

Permalink
Running legendary check
Browse files Browse the repository at this point in the history
The check is working.
I will write the rest based on Itch because the structure is similar.
  • Loading branch information
jcnils committed May 26, 2020
1 parent af94e50 commit db87e36
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/data/sources/epicgames/EpicGames.vala
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ namespace GameHub.Data.Sources.EpicGames

public override bool is_installed(bool refresh)
{
//check if legendary exists
var legendary = Utils.find_executable("legendary");

if(legendary == null || !legendary.query_exists())
{
debug("[EpicGames] is_installed: Legendary not found");
}
else
{
debug("[EpicGames] is_installed: LegendaryYES");
}

debug("[EpicGames] is_installed: NOT IMPLEMENTED");
return true;
}
Expand Down

0 comments on commit db87e36

Please sign in to comment.