Skip to content

Commit

Permalink
Collection: Expand $game everywhere (#632, #635)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkashkin authored May 22, 2022
1 parent f500a5a commit 550226e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/FSUtils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ namespace GameHub.Utils
variables.set("platform_name", platform == null ? "." : platform.name());
variables.set("platform", platform == null ? "." : platform.id());
variables.set("game_dir", expand_game_dir(g, platform));
variables.set("game", g);
return FSUtils.expand(instance.dlc, null, variables);
}
public static string expand_installers(string game, string? dlc=null, Platform? platform=null)
Expand All @@ -206,6 +207,7 @@ namespace GameHub.Utils
{
variables.set("game_dir", expand_dlc(g, platform) + "/" + d);
}
variables.set("game", g);
return FSUtils.expand(instance.installers, null, variables);
}
public static string expand_bonus(string game, string? dlc=null)
Expand All @@ -222,6 +224,7 @@ namespace GameHub.Utils
{
variables.set("game_dir", expand_dlc(g) + "/" + d);
}
variables.set("game", g);
return FSUtils.expand(instance.bonus, null, variables);
}

Expand Down Expand Up @@ -267,6 +270,7 @@ namespace GameHub.Utils
variables.set("platform_name", platform == null ? "." : platform.name());
variables.set("platform", platform == null ? "." : platform.id());
variables.set("game_dir", expand_game_dir(g, platform));
variables.set("game", g);
return FSUtils.expand(instance.installers, null, variables);
}

Expand Down

0 comments on commit 550226e

Please sign in to comment.